0

Listbox item selection doesn't work when using itemrenderers

asked 2010-06-11 09:07:06 +0800

kleptomac gravatar image kleptomac
75 2

Hi,

I have a listbox with the 'listitem' property set to "inplace='true'". I want to be able to select the row when I click on any of the items. Currently, it only enables the editor but doesn't select the row. How can I do this? Is is supported by the listbox control or do I need to write code to do that?

<listbox>
<listhead>
<listheader label="Title" width="100px"/>
</listhead>
<listitem>
<listcell>
<textbox value="item1" inplace="true"/>
</listcell>
</listitem>
<listitem>
<listcell>
<textbox value="item2" inplace="true"/>
</listcell>
</listitem>
<listitem>
<listcell>
<textbox value="item3" inplace="true"/>
</listcell>
</listitem>
</listbox>

Thanks
Jai

delete flag offensive retag edit

7 Replies

Sort by ยป oldest newest

answered 2010-06-14 05:18:29 +0800

kleptomac gravatar image kleptomac
75 2

does no one have this issue?

link publish delete flag offensive edit

answered 2010-06-18 01:01:31 +0800

ashishd gravatar image ashishd flag of Taiwan
1972 6

Hi kleptomac,
Unfortunately it seems SelectEvent is not fired when inplace is true. It might not have been part of inplace editing spec. I have filed it as a feature request here. Please follow its progress. In the mean time you could use some custom solution such as Posting a SelectEvent by yourself for any onFocus event of textbox componet. Hope that helps.

link publish delete flag offensive edit

answered 2010-06-18 02:52:50 +0800

kleptomac gravatar image kleptomac
75 2

Thanks for posting it as a feature request.

I was able to get this working by firing a SelectEvent by myself.

link publish delete flag offensive edit

answered 2010-06-18 02:59:03 +0800

kleptomac gravatar image kleptomac
75 2

I have also posted my solution here:

https://sourceforge.net/tracker/?func=detail&atid=785194&aid=3017896&group_id=152762

link publish delete flag offensive edit

answered 2010-10-05 03:48:58 +0800

tomyeh gravatar image tomyeh
610 1 3
http://blog.zkoss.org ZK Team

I implemented a feature called nonselectableTags to resolve this issue. Please refer to Feature 3017896 for details.

It will be available in the next freshly and 5.0.5.

link publish delete flag offensive edit

answered 2010-10-05 09:35:45 +0800

kleptomac gravatar image kleptomac
75 2

Thanks Tomyeh,

I understand that using 'nonselectableTags=""' will make the listitem selectable irrespective of what component it contains and when the user interacts with the inline component. If thats true, I would like to know what else can 'nonselectableTags' contain (other that just empty string).

link publish delete flag offensive edit

answered 2010-10-05 23:54:01 +0800

tomyeh gravatar image tomyeh
610 1 3
http://blog.zkoss.org ZK Team

Please refer to ZK Component Reference.

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: 2010-06-11 09:07:06 +0800

Seen: 671 times

Last updated: Oct 05 '10

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