0

Grid databinding: selectedRow?

asked 2008-06-20 09:15:14 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5043700

By: tommy_weber

Hi guys,

As you probably know, we can get data of a selected listitem in listbox by assigning selectedItem="model.selectedItemObject".

But in grid, it is kind of different and there is nothing like selectedRow because in a grid it is not supposed to "select" a row.. do you know how to handle this?

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-06-20 17:05:25 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5044413

By: salma43

hi,
i have the same problem and i can't resolve it.
Please if someone know how to resolve it answer us.
thanks.

link publish delete flag offensive edit

answered 2008-06-22 06:50:02 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5045655

By: msrednsi

I know this is not an ideal solution, it requires a server-roundtrip, but for me it works.

Put a 'selected' field on your bean, use a checkbox, assign an onCheck event...
easy!

Or put a checkbox and use its onCheck event to enlist the bean as selected, something like onCheck="mycontroller.objectSelected(self.value)"

Assuming each row's value contains a bean.


Hope that helps


link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2008-06-20 09:15:14 +0800

Seen: 169 times

Last updated: Jun 22 '08

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