This is a migrated thread and some comments may be shown as answers.
PageViewItemCreatedDelegate
1 Answer 15 Views
This is a migrated thread and some comments may be shown as answers.
Bader
Top achievements
Rank 1
Bader asked on 11 Apr 2012, 06:42 AM
Hi,

The following code is not working when using Telerik.Web.UI namespace (Mark on PageViewItemCreatedDelegate and PageViewItemCreated):

Can you please send me the modified code in order to make it work using Telerik.Web.UI namespace?

private void InitializeComponent()
{
this.RadMultiPage1.PageViewItemCreated += new PageViewItemCreatedDelegate(this.RadMultiPage1_PageViewItemCreated);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void RadMultiPage1_PageViewItemCreated(RadPageView view, int viewIndex)
{
Control userControl = LoadControl((string)ViewState["pv" + viewIndex.ToString()]);
userControl.ID = view.ID + "uc";
view.Controls.Add(userControl);
}


Regards,
Bader

1 Answer, 1 is accepted

Sort by
0
Bader
Top achievements
Rank 1
answered on 11 Apr 2012, 11:52 AM
Hi,

Please refer to http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/dynamicpageview/defaultcs.aspx for a solution.

In the above link, the tabs are added while the page is loading (Page_Load method). I'm trying to add the tabs based on a RadTreeView node value (Node click event). But for unknown reason, I get the following error message:

Error: Sys.WebForms.PageRequestManagerServerErrorException: Script control '' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl

Please, I appreciate any help with this issue.

Regards,
Bader
Asked by
Bader
Top achievements
Rank 1
Answers by
Bader
Top achievements
Rank 1
Share this question
or