Hello team,
How to set pageview to a tab using client method?
I added a tab and a pageview with client method, but when I click this new tab, the new pageview can not be shown.I think it's because of that I didn't set the pageview to tab, but I don't know how to achieve it with client side method, it seems server side has a method ,but client side not.
Below is the function which I use:
How to set pageview to a tab using client method?
I added a tab and a pageview with client method, but when I click this new tab, the new pageview can not be shown.I think it's because of that I didn't set the pageview to tab, but I don't know how to achieve it with client side method, it seems server side has a method ,but client side not.
Below is the function which I use:
var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
var tab = new Telerik.Web.UI.RadTab();
tab.set_text("New Tab");
tabStrip.trackChanges();
tabStrip.get_tabs().add(tab);
tabStrip.commitChanges();
var multiPage = $find("<%=RadMultiPage1.ClientID %>");
multiPage.trackChanges();
var pageView = new Telerik.Web.UI.RadPageView();
multiPage.get_pageViews().add(pageView);
pageView.get_element().innerHTML = "<iframe src='http://www.google.com' width='100%' height='600px'>";
multiPage.commitChanges();
thanks