This is a migrated thread and some comments may be shown as answers.

RadMultiPage without Tabs

2 Answers 61 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Hans van Rijnswoud
Top achievements
Rank 2
Hans van Rijnswoud asked on 11 Mar 2009, 06:46 AM
Hi,

Is it possible to implement a RadMultiPage (load on demand) without tabs.
I have already tabs on my page to manage aspx page.
I would like to manage the RadMultipage with ASP button.
It's working but it is very slow (to slow) and i have problem with the postback.

Here is my code inside the aspx page:

protected void Page_Load(object sender, EventArgs e) 
   if(!Page.IsPostBack) 
   { 
       AddPageView("VacancyAddStep0"); 
       btn_NextStep.Visible = true
       btn_PreviousStep.Visible = false
   } 
 
private void AddPageView(string pageViewId) 
   var pageView = new RadPageView { ID = pageViewId }; 
   RadMultiPage1.PageViews.Add(pageView); 
 
protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e) 
            string userControlName = "~/Views/" + e.PageView.ID + ".ascx"; 
            Control userControl = Page.LoadControl(userControlName); 
            userControl.ID = e.PageView.ID + "_userControl"; 
            e.PageView.Controls.Add(userControl); 
 
protected void LoadOfActiveRadPage(string pageName) 
            var multiPage = RadMultiPage1
            RadPageView _pageStep = multiPage.FindPageViewByID(pageName); 
            if (_pageStep == null) 
            { 
                _pageStep = new RadPageView(); 
                _pageStep.ID = pageName
                multiPage.PageViews.Add(_pageStep); 
            } 
            _pageStep.Selected = true
 


If it's possible? Do you have maybe a samples?
Of do I need to implement this with other control ( like update panel) ?

Any help and suggestion would be appreciate.

Thanks,

Edwin.

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 11 Mar 2009, 04:14 PM
Hello Edwin Blom,

RadMultiPage is in most cases used with RadTabStrip. Using it on its own has the only benefit of changing views on the client-side which seems not to be the case with your scenario. I recommend you use an UpdatePanel and load your controls on demand (using the button) in it.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Hans van Rijnswoud
Top achievements
Rank 2
answered on 12 Mar 2009, 07:45 PM
HI Albert,

Thanks for this.
It was to much work to change everything with updatePanel.
I found a "solution", I manage the postback of the ascx control with a bool in the ViewState and it's work perfect.

Regards,

Edwin.


Tags
TabStrip
Asked by
Hans van Rijnswoud
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Hans van Rijnswoud
Top achievements
Rank 2
Share this question
or