[FIXED] [V0.6] GridPanel ColumnModel ID=ct100 conflicts

  1. #1

    [FIXED] [V0.6] GridPanel ColumnModel ID=ct100 conflicts

    
    
    
    <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.
  2. #2

    RE: [FIXED] GridPanel ColumnModel ID=ct100 conflicts

    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.


    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 4
    Last Post: Apr 10, 2012, 9:48 PM
  2. Replies: 2
    Last Post: Oct 07, 2011, 4:55 PM
  3. Replies: 2
    Last Post: Oct 07, 2011, 4:54 PM
  4. Selecting different columnmodel for gridpanel.
    By masudcseku in forum 1.x Help
    Replies: 5
    Last Post: May 11, 2011, 6:09 PM
  5. Add ColumnModel to GridPanel
    By aalkema in forum 1.x Help
    Replies: 0
    Last Post: Apr 27, 2009, 12:58 PM

Posting Permissions