PageViewItemCreatedDelegate

2 posts, 0 answers
  1. Bader
    Bader avatar
    215 posts
    Member since:
    Aug 2008

    Posted 11 Apr 2012 Link to this post

    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
  2. Bader
    Bader avatar
    215 posts
    Member since:
    Aug 2008

    Posted 11 Apr 2012 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top