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

Dynamic PageView Creation via AJAX

1 Answer 65 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Yohan
Top achievements
Rank 2
Yohan asked on 02 Jul 2015, 07:43 AM

I tried to implement Dynamic PageView Creation via AJAX functionality. In the implementation  i did, if i click the second page and then click the first page first page content doesn't appear in first page, although in initial load content renders properly in first page. Please find the the sample project i created attached here. Please let me know whats wrong with my implementation.

 

1 Answer, 1 is accepted

Sort by
0
Aneliya Petkova
Telerik team
answered on 06 Jul 2015, 10:21 AM
Hi Yohan,

You must set the ContentUrl after a RadPageView is added to the RadMultiPage. Please change your AddPageView method like the following:
private void AddPageView(RadTab tab, string url)
{
    RadPageView pageView = new RadPageView();
         
    pageView.ID = tab.Text;
    RadMultiPage1.PageViews.Add(pageView);
    pageView.ContentUrl = url;
    tab.PageViewID = pageView.ID;
}


Regards,
Aneliya Petkova
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
TabStrip
Asked by
Yohan
Top achievements
Rank 2
Answers by
Aneliya Petkova
Telerik team
Share this question
or