Using Tabs/PageView to load external content

2 posts, 0 answers
  1. dino
    dino avatar
    15 posts
    Member since:
    Jul 2012

    Posted 05 Jul 2012 Link to this post

    First off, let me say that I am quite excited to learn more about RadControls.  I'm still mostly a beginner .net developer (I've been developing with ASP classic for years but only touched .net here and there) but even after just a few days of working with the trial I can see that these controls are going to help me move forward immensely.

    Anyway, one of the tasks that I need to perform is pretty simple, I think.  I need to be able to use a tab control to load content from multiple sources - other servers on our network.  The content will be called via url and I'd like it to maintain "state" if I can use that term in this context.  In other words, click tab 1, load content, click link in content, content changes.  Click tab 2, load content.  Click tab 1 again and return to content as it was when I last viewed it.

    I'm currently trying to accomplish this using the Tabstrip/MulitPage/Pageview combination that is shown in the demos on this site.  I have no problem getting everything to load (contentURL="xxxxx" is simple enough) but the state is lost when you click another tab.

    I also attempted to do this using RadWindow and I believe the "state" was maintained the way I wanted it to be but when I tried to combine that with the Tab/Pageview method I found that the windows need to be told when to show/hide so it seemed to defeat the purpose of using tabs.

    Lastly, I'll just add that I thought the first method (tab/multipage/pageview) was working the way I wanted it but I'm not sure if that was ever the case. I've done too much fiddling and I can't remember what worked and what didn't.  I do know that it doesn't work now though and I'm hoping I changed something along to way to make that so.  I may just start a new page and try again from scratch.

    At any rate, my question is, simply, is what I'm trying to do the best way to do it and, if so, would someone be kind enough to offer some advice as to how to go about it?  I'll post some code if need be but I have yet to write anything in the codebehind so there's not much to see.

    Thanks.
  2. dino
    dino avatar
    15 posts
    Member since:
    Jul 2012

    Posted 06 Jul 2012 Link to this post

    OK, very simple solution - set PostBack="false" for all tabs and that prevents them from causing a postback. :)
Back to Top