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

Template and RegisterScriptControl

5 Answers 160 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
David Reuben
Top achievements
Rank 1
David Reuben asked on 12 Sep 2008, 02:25 PM
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.

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Sep 2008, 08:34 AM
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.
0
Adrian
Top achievements
Rank 1
answered on 19 Dec 2013, 02:35 PM
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
0
Eyup
Telerik team
answered on 25 Dec 2013, 01:52 PM
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.
0
Adrian
Top achievements
Rank 1
answered on 06 Jan 2014, 02:14 PM
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.  
0
Kostadin
Telerik team
answered on 09 Jan 2014, 12:16 PM
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.
Tags
TreeView
Asked by
David Reuben
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Adrian
Top achievements
Rank 1
Eyup
Telerik team
Kostadin
Telerik team
Share this question
or