-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a bandbox component that has a tree inside its bandpopup, like...
<bandbox id="categoryBB" value="@bind(r.title)" readonly="true"> <bandpopup width="300px"> <tree id="categoryTree" model="@load(vm.categories)" checkmark="true" rows="8" vflex="true" onSelect="categoryBB.value=self.selectedItem.label; categoryBB.close();"> <treecols> <treecol label="" /> </treecols> <template name="model"> <treeitem> <treerow> <treecell label="${each.data.title}" /> </treerow> </treeitem> </template> </tree> </bandpopup> </bandbox>
I've tried working around this problem by using a hidden 'longbox' to store the ID code of the selected tree item, see:
<hlayout> <bandbox id="categoryBB" value="@bind(r.title)" readonly="true"> <bandpopup width="300px"> <tree id="categoryTree" model="@load(vm.categories)" checkmark="true" rows="8" vflex="true" onSelect="categoryBB.value=self.selectedItem.label; categoryID.value= self.selectedItem.value.data.ID; categoryBB.close();"> <treecols> <treecol label="" /> </treecols> <template name="model"> <treeitem open="true"> <treerow> <treecell label="${each.data.title}" /> </treerow> </treeitem> </template> </tree> </bandpopup> </bandbox> <longbox id="categoryID" visible="false" value="@bind(r.resourceCategoryID)" /> </hlayout>
Hi,
I am not sure what your problem is. From the first post, you should be able to set value into bandbox.
Can you describe more details on you question?
Asked: 2012-06-10 09:05:41 +0800
Seen: 226 times
Last updated: Jun 14 '12