I wanted to get some clarification on the LoadOnDemand feature of WebTab. When AsyncMode=On and EnableLoadOnDemand=True, it seems that WebTab only returns html for the selected tab as expected. However, when stepping through the code in debug mode, it appears that each usercontrol is still run on the server side with each tab click.
<igtab:UltraWebTab ID="tabDevice" runat="server" TabOrientation="LeftTop" BarHeight="0" LoadAllTargetUrls="False" Width="100%" AsyncMode="On" > <asyncoptions EnableLoadOnDemand="true"/> <Tabs> <igtab:Tab Text="UC 1" AsyncOption="LoadOnDemand" Key="MyTab1"> <ContentPane UserControlUrl="deviceModules/deviceUC.ascx" /> </igtab:Tab> <igtab:TabSeparator/> <igtab:Tab Text="UC 2" AsyncOption="LoadOnDemand" Key="MyTab2"> <ContentTemplate> <uc1:deviceUC ID="tab2UC" runat="server" /> </ContentTemplate> </igtab:Tab> </Tabs></igtab:UltraWebTab>
Viktor,
thank you for following up. I store the current tab name in the hidden field on the client event 'AfterSelectedTabChange' to work around what seems to be a bug.
Hi,
I can not see your attachment. Did you submitted a case or used Options tab?
Hi Victor,
Thank you for helping me.
I sent you 2 files aspx and aspx.cs. If you put break point at line 1499, you'll see the problem right away.
dashboardTabs.SelectedTabIndex=-1, but it should be in range of 0-4
In order to help you, I need a simple sample which can be used to reproduce behavior which you refer to. If it is possible to build a simple example (maybe without grid), then please zip aspx/cs files and attach to Options tab.
I have a situation where the form is submitted, then the info is collected (number of selected rows in the ultrawebgrid) and then the form is resubmitted via javascript (form.submit) upon "OK" from a javascript Confirm.
Once the form is submitted with JavaScript the UltraWebTab loses its SelectedTabIndex, although the ultrawebtab EnableViewState is set to True.
To be more precise, the SelectedTabIndex is shown = -1, but then when I view the UltraWebTab object in the Watch window, the SelectedTabIndex is shown correctly, but this is not helpful when the program runs on its own, i.e. not in the debug mode. All on its own the SelectedTabIndex = -1 . Since SelectedTabIndex is determining the logic, it is important to be have its actual value.
Thank you!