Template and RegisterScriptControl

6 posts, 0 answers
  1. David Reuben
    David Reuben avatar
    4 posts
    Member since:
    Aug 2004

    Posted 12 Sep 2008 Link to this post

    I have a tree control where the nodes are loading via ServerSideCallback. The structure is basically Regions, States, and Markets. Most of the time, the Markets are simply a list of nodes with checkboxes. However, on some Markets I need to display both a checkable list and a clickable map.

    So, for example, I have created a user control that contains TabStrip and MultiPage controls... one page contains the map, and the other contains a CheckboxList of markets. When this user control is displayed, however, I get a client-side alert stating that "Script control 'Tabs_XXXXX' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name scriptControl." How should I handle this?????

    Two other notes: If I add simple controls into the template (i.e. labels), instead of something 'complicated' (like the TabStrip), then everything works fine. Second, not sure if this is needed or not, but based on the documentation, I am instantiating the User Control in the Page.Init event.
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 15 Sep 2008 Link to this post

    Hi David Reuben,

    Indeed nodes added via ServerSideCallback mode cannot be used with "complex" controls with rich client-side behavior. The reason is simple - ASP.NET 2.0 callbacks which are used to perform the server-side callback do not support registration of ASP.NET Ajax controls. The only workaround is to use ServerSide expand mode. You can find more info in this blog post.

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Adrian
    Adrian avatar
    4 posts
    Member since:
    Dec 2013

    Posted 19 Dec 2013 Link to this post

    On the instructions: this.Page.RenderControl (hw) I receive: Script control 'RadGrid' is not a registered script control. Script controls must be registered using RegisterScriptControl () Before calling RegisterScriptDescriptors (). 
    How can I fix this? Thanks
  5. Eyup
    Admin
    Eyup avatar
    3009 posts

    Posted 25 Dec 2013 Link to this post

    Hi Adrian,

    Can you elaborate on your specific scenario? What are you trying to achieve? Do you replicate this problem with any of our live demos?
    http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/basic-filtering/defaultcs.aspx

    Looking forward to your reply.

    Regards,
    Eyup
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  6. Adrian
    Adrian avatar
    4 posts
    Member since:
    Dec 2013

    Posted 06 Jan 2014 Link to this post

    I solved the previous error - I set RegisterWithScriptManager to false.

    Thanks for the reply.

    Now I have the following question:
      I want to Export HTML DIV contents to PDF using iTextSharp and I want to use RenderControl with Asp Panel. 
    Asp Panel contains several RadGrid. 
    I thought about this solution, because I need to export a section of a asp.net(with CSS) page to PDF.
            Is this a viable solution to export in PDF format or is there a better solution? 

    Thanks.  
  7. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 09 Jan 2014 Link to this post

    Hi Adrian,

    I have already answered your other forum thread, so I would suggest you to close this one and continue our conversation there.

    Regards,
    Kostadin
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017