[1.0] Repeater and TabPanel

  1. #1

    [1.0] Repeater and TabPanel

    Hello,

    I am getting an javascript error when trying to put a tabpanel inside a repeater. Any ideas how to solve this?

    Javascript error: 'b is undefined'

    Thanks,

            protected void Page_Load(object sender, EventArgs e)
            {
                var dt = new System.Data.DataTable();
                var dc = new System.Data.DataColumn("x", typeof(String));
                dt.Columns.Add(dc);
    
                var dr2 = dt.NewRow();
                var dr3 = dt.NewRow();
                dr2["x"] = "xx";
                dr3["x"] = "2x";
                dt.Rows.Add(dr2);
                dt.Rows.Add(dr3);
    
                RepeaterResultado.DataSource = dt;
                RepeaterResultado.DataBind();
            }
            <asp:Repeater ID="RepeaterResultado" runat="server">
                <ItemTemplate>
                    <ext:TabPanel Plain="true" runat="server">
                        <Items>
                            <ext:Panel Title="1" runat="server">
                                <Items>
                                    <ext:Label Text="tmp" runat="server" />
                                </Items>
                            </ext:Panel>
                            <ext:Panel Title="2" runat="server">
                                <Content>
                                    <ext:Label Text="tmp" runat="server" />
                                </Content>
                            </ext:Panel>
                        </Items>
                    </ext:TabPanel>
                </ItemTemplate>
            </asp:Repeater>
  2. #2

    RE: [1.0] Repeater and TabPanel

    Hi,

    I ran your code and the page renders correctly with two TabPanels and without throwing a JavaScript error.


    Geoffrey McGill
    Founder
  3. #3

    RE: [1.0] Repeater and TabPanel

    My bad. Forgot to mention: try clicking on the second tab, that's where the error shows up.

    Thanks
  4. #4

    RE: [1.0] Repeater and TabPanel

    Bruno Nogueira (5/18/2010)My bad. Forgot to mention: try clicking on the second tab, that's where the error shows up.

    Thanks
    Sorry, but it still works for me. Any other suggestions?


    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 1
    Last Post: Mar 27, 2012, 2:36 AM
  2. Repeater inside GridPanel
    By bruno in forum 1.x Help
    Replies: 1
    Last Post: Sep 15, 2011, 4:40 PM
  3. Replies: 3
    Last Post: Aug 21, 2009, 2:24 PM
  4. Update asp.net Repeater with AjaxMethod
    By FreddieBoo in forum 1.x Help
    Replies: 3
    Last Post: Aug 13, 2009, 7:21 AM
  5. [CLOSED] ext button ajax event not updating a repeater
    By WP in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 02, 2008, 11:39 AM

Posting Permissions