-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
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?
2 | No.2 Revision |
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?