Jul 04, 2012, 10:08 PM
Problems with DataView and ItemSelector for nested tpl structures
Hi
I can get a DataView and itemselector working correctly for a parent tpl div but not for a child one. Is this possible? For example this this fails:
My data structure is as follows but could be changed if it would make it possible (I have tried a simple array of arrays but couldn't get that to work either):
Thanks for any help you can give.
I can get a DataView and itemselector working correctly for a parent tpl div but not for a child one. Is this possible? For example this this fails:
<ext:DataView ID="DataViewNodesDS" runat="server" ItemSelector="div.item-wrap" OverItemCls="x-item-over" TrackOver="True" MultiSelect="true" AutoHeight="true" EmptyText="No items to display">
<Store>
<ext:Store ID="StoreNodesDS2" runat="server">
<Model>
<ext:Model ID="Model5" runat="server">
<Fields>
<ext:ModelField Name="Nodes" IsComplex="true" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<Tpl ID="Tpl2" runat="server">
<Html>
<tpl for=".">
<tpl for="Nodes">
<div class="item-wrap">{Node}</div>
</tpl>
<div style="clear:left"></div>
</tpl>
</Html>
</Tpl>
<Plugins>
<ext:DataViewDragSelector ID="DataViewDragSelector2" runat="server" />
</Plugins>
</ext:DataView>
I'm trying to get a DataView as follows, where each of the numbers are selectable items:My data structure is as follows but could be changed if it would make it possible (I have tried a simple array of arrays but couldn't get that to work either):
Thanks for any help you can give.