Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Problem using WebTab with Scriptmanager

Last post 09-01-2008 5:33 by Man34. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-22-2008 5:18

    • Man34
    • Not Ranked
    • Joined on 07-17-2008
    • Points 50

    Problem using WebTab with Scriptmanager

    Hi,
    I have made a simple WebAppl with an Ultrawebtab and 3 Pages.
    The 3 Pages are called with the Eventhandler:
            void UltraWebTab1_TabClick(object sender, Infragistics.WebUI.UltraWebTab.WebTabEvent e){
                switch (e.Tab.Key){
                    case "0": e.Tab.ContentPane.TargetUrl = "Page1.aspx"; break;
                    case "1": e.Tab.ContentPane.TargetUrl = "Page2.aspx"; break;
                    case "2": e.Tab.ContentPane.TargetUrl = "Page3.aspx"; break;}}
    So far it works well.

    But when I add a scriptmanager to the 3 pages, I got an error:
     in line 997 of MicrosoftAjaxWebForms.debug.js:
      if (!this._postBackSettings.async) {
    Errormessage: 'this._postBackSettings.async' is null or not an object
    Any help?

    Enviroment: MSVS2008 C# Framework 3.5 and Infragistics35.WebUI.UltraWebTab.v8.1

    • Post Points: 5
  • 09-01-2008 5:33 In reply to

    • Man34
    • Not Ranked
    • Joined on 07-17-2008
    • Points 50

    Re: Problem using WebTab with Scriptmanager

    Okay, here my solution:

        <script type="text/javascript">

        function UltraWebTab1_onInitTab(sender, eventArg2, eventArg3)
        {
            var page = "Page1.aspx";
            var index = 0;
           
            var nam = sender.ID + "_frame" + index;
            document.getElementById(nam).style.cssText = "DISPLAY:block";
            document.getElementById(nam).contentWindow.location.href = page;
            document.getElementById(nam).contentWindow.document.frames[index].location.href = page;
            document.getElementById(nam).contentWindow.location.reload(true);
        }
       
        function UltraWebTab1_onTabClick(sender, item, event)
        {
            var page;
            switch (item.Key)
            {
                case "0":
                    page = "Page1.aspx";
                    break;
                case "1":
                    page = "Page2.aspx";
                    break;
                case "2":
                    page = "Page3.aspx";
                    break;
            }
            var nam = sender.ID + "_frame" + item.Key;
            document.getElementById(nam).style.cssText = "DISPLAY:block";
            document.getElementById(nam).contentWindow.location.href = page;
            document.getElementById(nam).contentWindow.document.frames[item.index].location.href = page;
            document.getElementById(nam).contentWindow.location.reload(true);
        }
       </script>
     
    <igtab:UltraWebTab ID="UltraWebTab1" runat="server" AutoPostBack="false">
        <ClientSideEvents Click="UltraWebTab1_onTabClick"
         InitializeTabs="UltraWebTab1_onInitTab" />
        <Tabs>
            <igtab:Tab Key="0" AccessKey="0" Text="Page1" />
            <igtab:Tab Key="1" AccessKey="1" Text="Page2" />
            <igtab:Tab Key="2" AccessKey="2" Text="Page3" />
        </Tabs>
    </igtab:UltraWebTab>

    Thanks for congratulations!

     

    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems