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

Multipage

1 Answer 79 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
DvdBrink
Top achievements
Rank 1
DvdBrink asked on 15 Jul 2010, 03:29 PM

I want to dynamically add RadPages and Radtab on the clientside. I dont know if this is possible because there isn't much documentation on this subject.

This is what i got so far:

var multipage = $find('multipage');
var page = new Telerik.Web.UI.RadPageView();
var tab = new Telerik.Web.UI.RadTab();
tab.set_text("New Tab");
 
multipage.get_pageViews().add(page);
$find('tabstrip').get_tabs().add(tab);

I got a new tab on my tabstrip and in the html i see a empty div element for my multipage.

When i click the tab, it doesn't open the page. Am i missing something here?


1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 16 Jul 2010, 05:42 PM
Hi Dick Van den Brink,

You need to assign a DOM element that will hold the content of a given PageView through its constructor, e.g.
new Telerik.Web.UI.RadPageView(DOMElement);

This is undocumented as it is an uncommon use-case of the client-side API.

Greetings,
Simon
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
TabStrip
Asked by
DvdBrink
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or