PDA

View Full Version : [FIXED] [V0.6] GridPanel ColumnModel ID=ct100 conflicts



Peter P
Sep 08, 2008, 8:11 PM
<body>
<form id="form1" runat="server">

<ext:ScriptManager ID="ScriptManager1" runat="server">
</ext:ScriptManager>
<asp:ObjectDataSource ID="dsProjects" runat="server"
SelectMethod="QueryView" TypeName="SomeClassName">
<SelectParameters>
</SelectParameters>
</asp:ObjectDataSource>
<ext:Store ID="stProjects" runat="server" DataSourceID="dsProjects">
<Reader>
<ext:JsonReader>
<Fields>
<ext:RecordField Name="PROJECT_NAME" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<ext:GridPanel ID="GridPanel1" runat="server" StoreID="stProjects">
<ColumnModel ID="ctl00">
<Columns>
<ext:Column Header="Project Name" DataIndex="PROJECT_NAME" Sortable="True">
</ext:Column>
</Columns>
</ColumnModel>
</ext:GridPanel>


</form>
</body>


On page load, the following error happens
Multiple controls with the same ID 'ctl00' were found. FindControl requires that controls have unique IDs.

Changing the ColumnModel ID from ct100 to something like cmProjects makes the page work.

geoffrey.mcgill
Sep 08, 2008, 8:33 PM
Hi Peter P,

Thanks for reporting! The bug has been fixed and committed to svn. The fix will also be available with the v0.6 Preview release. 


As you noted, giving the ColumnModel a unique ID should work-around the bug.