UpdatePanel in TabPanel

Page 2 of 2 FirstFirst 12
  1. #11

    RE: UpdatePanel in TabPanel

    Using FF3.0 and cleared everything I can possibly think of ;)

    I even tried in IE6 which hasn't been running lately, cleared catch ... nadda!

    Cheers,
    Timothy
  2. #12

    RE: UpdatePanel in TabPanel

    Found the problem in SVN source code:

                        items.Add("coolite.coolite-ajax.js");
    Should be:

                        items.Add(".coolite.coolite-ajax.js");
    Line 582 in Coolite.Ext.Web/Core/ScriptManager.cs

    Cheers,
    Timothy
  3. #13

    RE: UpdatePanel in TabPanel

    Other than the above, the only other bug I've noticed is when the Tabs do not have an ID. Fails in FF3.0 inside an UpdatePanel.

    Cheers,
    Timothy
  4. #14

    RE: UpdatePanel in TabPanel

    The below fails when you switch to the 2nd tab and click "Update":

            <form id="Form1" runat="server">
                <asp:ScriptManager runat="server" />
                <ExtJS:ScriptManager runat="server" Theme="Default" />
                <asp:UpdatePanel runat="server">
                    <ContentTemplate>
                        <ExtJS:TabPanel ID="tabsCustomer" runat="server" ActiveTab="0" AutoHeight="True" AutoWidth="True">
                            <Tabs>
                                <ExtJS:Tab ID="tabCustomerSearch" runat="server" Title="Customer Search" AutoHeight="True" AutoWidth="True">
                                    <Content>
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
    
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </Content>
                                </ExtJS:Tab>
                                <ExtJS:Tab ID="tabCustomerDetail" runat="server" Title="Customer Detail" AutoHeight="True" AutoWidth="True">
                                    <Content>
                                        <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
                                                <ExtJS:Button ID="btnUpdate" runat="server" Text="Update" />
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </Content>
                                </ExtJS:Tab>
                            </Tabs>
                        </ExtJS:TabPanel>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </form>
    Let me know when you guys want me to test it again -- I'm going to roll back to this mornings copy :)

    Cheers,
    Timothy
  5. #15

    RE: UpdatePanel in TabPanel

    I'm surprised that that would even work with all native .NET controls. I guess a Parent UpdatePanel with UpdateMode="Always" trumps inner nested UpdatePanels with UpdateMode="Conditional" even when the .update is triggered from the "Conditional" UpdatePanel.

    Seems like if any Parent UpdatePanel in the stack is set to "Always", every Child is always updated, even when the Child is specifically set to "Conditional". Kinda makes setting "Conditional" pointless on child <asp:UpdatePanel>'s if a Parent does not follow the same pattern. I guess it's "all or none". ;)

    I'll modify the logic to always update Toolkit Controls if a Parent UpdatePanel is set to "Always". Should be a quick fix.

    Setting the first <asp:UpdatePanel> to UpdateMode="Conditional" in your latest example above should fix the error, which is also how your original sample was configured.

    Hope this helps.
    Geoffrey McGill
    Founder
  6. #16

    RE: UpdatePanel in TabPanel

    You're absolutely correct with the outer UpdatePanel always updating the inner UpdatePanels even when Conditional, my mistake.

    The only real problem I have right now is the IDs missing on controls within a TabPanel inside an UpdatePanel. This is generating corruption errors in FF3.0.

    Oh, and if you could commit the '.' missing in SVN that would be ace; I hate working with a modified copy of something ;)

    Cheers,
    Timothy
  7. #17

    RE: UpdatePanel in TabPanel

    I took a look at the missing ID's, although can not seem to reproduce yet. I'll keep looking. I'm sure it's a problem of referencing the .ID or .ClientID property instead of the .UniqueID property when doing lookup's on the controls.

    The '.' revision was committed approx 30 minutes ago.

    Hope this helps.
    Geoffrey McGill
    Founder
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 8
    Last Post: Nov 17, 2009, 10:16 AM
  2. UpdatePanel bug
    By SouthDeveloper in forum 1.x Help
    Replies: 1
    Last Post: Oct 23, 2009, 4:18 PM
  3. [CLOSED] UpdatePanel and TabPanel
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 25
    Last Post: Sep 21, 2009, 5:30 PM
  4. [CLOSED] UpdatePanel and TabPanel
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 16
    Last Post: Oct 03, 2008, 8:28 AM
  5. TabPanel inside UpdatePanel - fails
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 05, 2008, 9:02 PM

Posting Permissions