0

List box selected item is not updating in inline list box

asked 2014-01-19 13:55:20 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Hi

I am using listbox inline editing. Column contains text box and decimal boxes. The problem is when user move the focus to the textbox or decimal box, the selected item is not updating correctly. In order to update, first we need to click on the row and then click on the text box. But i have used the following as work around, is any other correct way to do that (Handled onClick event of listcell and pass the current object)

    <listcell onClick="@command('onClick',type=p1)">
                            <decimalbox cols="25"
                                onChange="@command('doTotal')" instant="true"
                                value="@bind(p1.postingPaymentAmt)" mold="rounded"
                                format="#,###.##" hflex="1" />
                        </listcell>

@NotifyChange({ "selectedClaimDetail" })
public void onClick(@BindingParam("type") ClaimDetail selectedClaimDetail) {
    this.selectedClaimDetail = selectedClaimDetail;
}
delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0
link publish delete flag offensive edit
0

answered 2014-01-20 11:43:00 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

In your example, selected item is updated only when you click on the second column (where there is no text box). But when you click inside the text box, the selected item is not changed. It is still points to previous one

link publish delete flag offensive edit

Comments

Oke I get your point, but wasn't this the purpose to do otherwsise you call your model by every letter you type or erase (and the db) what make so big overhead to db?

chillworld ( 2014-01-20 11:59:52 +0800 )edit

http://zkfiddle.org/sample/261d7qp/8-Listbox-getSelectedItems-order Its on lostfocus he shall update, so you can click where you want in the form.. (added messagebox in the model)

chillworld ( 2014-01-20 12:46:38 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-01-19 13:55:20 +0800

Seen: 22 times

Last updated: Jan 20 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More