PDA

View Full Version : DataView Template Issues (bug?)



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?

Vladimir
Apr 06, 2012, 11:25 AM
Can you provide full test sample?

cleve
Apr 06, 2012, 3:41 PM
Can you provide full test sample?

Here is:




<ext:DataView runat="server" ItemSelector="td.part">
<Store>
<ext:Store runat="server" ID="s">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="Start" IsComplex="true" />
<ext:ModelField Name="Connectors" IsComplex="true" />
</Fields>
</ext:Model>
</Model>
<Proxy>
<ext:AjaxProxy Json="true"
Url="/WorkflowTemplate.aspx/RetrieveGraph/7B4C83AF20C14728AFA89787E05C6001">
<ActionMethods Read="GET" />
<Reader>
<ext:JsonReader Root="data" TotalProperty="total" />
</Reader>
</ext:AjaxProxy>
</Proxy>
</ext:Store>
</Store>
<Tpl runat="server">
<Html>
<tpl for=".">
<table>
<tpl for="Connectors">
<tpl for=".">
<tr>
<td align="center" class="part" id="{[values.UniqueId]}">
<table>
<tr>
<td>
<img src="/images/gif.gif" width="160" height="35" />
</td>
</tr>
</table>
</td>
<td valign="top" style="padding:10px;">{Name}</td>
</tr>
</tpl>
</tpl>
</table>
</tpl>
</Html>
</Tpl>
</ext:DataView>




I run some tests and screen out some possibilities as the following:

1. Remove "{[values.UniqueId]}" works fine;
2. Make store as memory mode instead of loading from AjaxProxy with Json Reader, works fine tooo.

PS.
(JSON data format is arbitary, confined to "Start" and an array named "Connectors" properties) :

Daniil
Apr 13, 2012, 2:57 PM
Hi,

Could you provide a sample which we could run without any changes from our side and reproduce the issue?

Daniil
Jun 07, 2012, 8:36 AM
The thread is related to this one:
http://forums.ext.net/showthread.php?19408