Hello,
I am using Load on Demand in WebTab control (I need to load the tab content only when the user is clicking on a tab).
The PostBackOptions property EnableLoadOnDemand is "true" and I am using aspx pages inside the tabs. (Each tab has the ContentUrl property set to "something.aspx")
The Load on demand works fine when the aspx page inside the tab is in the same directory as the aspx page containing the WebTab control. When the aspx page inside the tab is not in the same directory as the WebTab page, the Webtab is loading already loaded tab.
Is this a WebTab component issue or is something going on with my code?
Here is my WebTab configuration :
<ig:WebTab ID="WebTab1" runat="server">
<PostBackOptions EnableLoadOnDemandUrl="true" EnableAjax="false"/>
In page_load,
Tab1.ContentUrl = "Tab1Content.aspx",
Tab2.ContentUrl = "Tab2Content.aspx" and
Tab3.ContentUrl = ResolveClientUrl("~/OtherDirectory/Tab3Content.aspx")
Could you please help me with the above issue?
Thanks
Hi ocornuau,
I am following up to check whether you have been able to resolve your issues. Please let me know if you need further assistance regarding this matter.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support
Please feel free to contact me with any updates or questions.
Sincerely,
Petar Ivanov
Hi Petar,
I am going to try your solution and I'll let you know if it works. I just wanted to add that my actual code works fine in IE6 and 7. The problem appears when using IE8,9, Firefox and Chrome.
I will keep you posted.
Thank you for the sample.
I was able to replicate the behavior and this seems to be case with unsupported skipping reloads described in my previous post.However, I was able to set the URL of the tab in question so that it is loaded only once is by uhandling the client side Initialize event and giving is the absolute URL. For instance:
function WebTab1_Initialize(sender, eventArgs){ sender.get_tabs()[2].set_contentUrl("http://localhost:XXXX/WebTabContentURL/NewDir/Nested.aspx", true);}
Please contact me if you have any questions.
Thank you for your cooperation. I tried your sample code and it works, but not in my case because the aspx file containing the WebTab is in another folder than the default application directory. I have modified your sample accordingly.
You will notice that I have created another folder (NewDir2) containing the WebTab aspx file and Tab1 and Tab2 aspx files.
If you put a breakpoint on the Page_Load method from Nested.aspx you will notice that every time you select this tab he will be reloaded (it's not the case for Default2.aspx and Default3.aspx).
I would appreciate your quick response!