cleve
Apr 06, 2012, 6:38 AM
DataView with template comes up with an error. The following produce a table cell to be seleted (ItemSelector says td cell with class name "part" can be selected). But rendering of dataview shows an exception in IE9 "internalID" undefined.
PS. replace ItemSelector to "div" can make the exception gone. But obviously not my real intention to select table cell.
<ext:DataView ID="dvList" runat="server" ItemSelector="td.part" MultiSelect="false"
StoreID="dsList" SingleSelect="false" SimpleSelect="true">
<Tpl runat="server">
<Html>
<tpl for=".">
<table>
<tr>
<td class="part">SELECTION AREA</td>
</tr>
</table>
</tpl>
</Html>
</Tpl>
<PrepareData Fn="ISSC.WTemplate.Graph.dvList_PrepareData" />
<Listeners>
<ItemClick Fn="ISSC.WTemplate.Graph.dvList_SelectPart" />
<ItemContextMenu Fn="ISSC.WTemplate.Graph.dvList_PartMenu" PreventDefault="true" />
</Listeners>
</ext:DataView>
Any ideas?
PS. replace ItemSelector to "div" can make the exception gone. But obviously not my real intention to select table cell.
<ext:DataView ID="dvList" runat="server" ItemSelector="td.part" MultiSelect="false"
StoreID="dsList" SingleSelect="false" SimpleSelect="true">
<Tpl runat="server">
<Html>
<tpl for=".">
<table>
<tr>
<td class="part">SELECTION AREA</td>
</tr>
</table>
</tpl>
</Html>
</Tpl>
<PrepareData Fn="ISSC.WTemplate.Graph.dvList_PrepareData" />
<Listeners>
<ItemClick Fn="ISSC.WTemplate.Graph.dvList_SelectPart" />
<ItemContextMenu Fn="ISSC.WTemplate.Graph.dvList_PartMenu" PreventDefault="true" />
</Listeners>
</ext:DataView>
Any ideas?