0

At Listbox, setSelectedIndex in zul

asked 2016-05-12 08:35:47 +0800

studyofzul gravatar image studyofzul
1

updated 2016-05-12 08:38:33 +0800

Here, there is code in zul.

<listbox id="memberlistbox" model="${$composer.memberlist }" mold="paging" pagesize="10"> <template name="model" >="" <listitem=""> <listcell><checkbox value="${each.bizno }"></checkbox></listcell> <listcell label="${each.name}"/> <listcell label="${each.pre_id}"/> <listcell label="${each.idchangedate}"/> <listcell> <listbox mold="select" model="${$composer.searchDepartment }" selectedindex="" >="" <template="" name="model" >="" <listitem="" label="${each.codenm }"/> </template> </listbox> </listcell> <listcell> <listbox mold="select" model="${$composer.positionlist }"> <template name="model"> <listitem label="${each.codenm }"/> </template> </listbox> </listcell> </template> </listbox>

So, I want to set selectedIndex in list. First listbox have two listbox in the listcell. mold of second listbox is select, And I want to give setSelectedIndex. I already used selectedIndex function like this 'selectedIndex='${each.place}'
but, It was not worked. So.. How to do this one?

delete flag offensive retag edit
Be the first one to answer this question!
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: 2016-05-12 08:35:47 +0800

Seen: 19 times

Last updated: May 12 '16