-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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.
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.
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).
Please refer to ZK Component Reference.
Asked: 2010-06-11 09:07:06 +0800
Seen: 671 times
Last updated: Oct 05 '10