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

RadTreeView Scripts Registration Problem

3 Answers 146 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Roberto Gadea
Top achievements
Rank 1
Roberto Gadea asked on 06 Apr 2010, 07:13 PM
I Have a RadTreeView inside a RadComboBox, and i have inside the aspx page the RadScriptManager, i can bind the data to the tree, but when it gonna be draw in the page i get the error:
"Script control 'RadTreeView1' is not a registered script control, Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl"
If i set the property RegisterWithScriptManager of the tree to false, the tree draws in the page with no problems, but with no functionalities.
Its there a way to manually register the RadTreeView scripts into the RadScriptManager so i can get the tree functionality back?

Thanks

3 Answers, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 08 Apr 2010, 06:30 PM
Hi Roberto Gadea,

Can you please let us know how do you add the ComboBox to the page and the TreeView inside the Combo? This scenario should work without problems, as shown in our integration example, unless you are adding the controls too later in the Page lifecycle.

Regards,
Dimitar Milushev
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.
0
Roberto Gadea
Top achievements
Rank 1
answered on 09 Apr 2010, 01:56 PM
Ok, here is the code simplificated, and focused when i add the combo with the tree:
<body style="background-color:White; margin:0px;">  
    <form id="form1" runat="server" enctype="multipart/form-data">  
        <telerik:RadScriptManager ID="smScripts" runat="server">  
            <Services> 
                <asp:ServiceReference Path="~/WebServices/Service1.asmx"/>  
                <asp:ServiceReference Path="~/WebServices/Service2.asmx" />                  
            </Services> 
        </telerik:RadScriptManager> 
        <asp:FormView ID="FormView1" style="width:100%;" cellpadding="0" 
                      runat="server" DataSourceID="oDsCase" DefaultMode="Insert" Width="100%" OnLoad="FormView1_Load">  
            <InsertItemTemplate>      
                <telerik:RadAjaxPanel ID="upModulo" runat="server" HorizontalAlign="NotSet">   
                    <telerik:RadComboBox ID="ddlModulo" runat="server" 
                                         ShowToggleImage="True" ExpandAnimation-Type="None" Skin="Sitefinity" 
                                         CollapseAnimation-Type="None" OnItemsRequested="ddlModulo_ItemsRequested" 
                                         AllowCustomText="true" style="width:80%;" > 
                        <ItemTemplate> 
                            <telerik:RadTreeView ID="tvModulos" runat="server">  
                            </telerik:RadTreeView> 
                        </ItemTemplate> 
                        <Items> 
                            <telerik:RadComboBoxItem /> 
                        </Items> 
                        <FooterTemplate> 
                        </FooterTemplate> 
                    </telerik:RadComboBox> 
                </telerik:RadAjaxPanel> 
            </InsertItemTemplate> 
        </asp:FormView> <br/> 
    </form> 
</body>  
Later in the code, after i add this combo, i put other telerik controls, and i have no problem with them. Hope this help u.

Thanks
0
Dimitar Milushev
Telerik team
answered on 12 Apr 2010, 11:59 AM
Hi Roberto,

I tested a similar scenario in a test web site, but both the TreeView and the ComboBox seem to work as expected. I am attaching the sample project here. Please let us know of any major differences between it and your project that can help us reproduce the issue.

Greetings,
Dimitar Milushev
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
ScriptManager and StyleSheetManager
Asked by
Roberto Gadea
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Roberto Gadea
Top achievements
Rank 1
Share this question
or