RadTreeView Scripts Registration Problem

4 posts, 0 answers
  1. Roberto Gadea
    Roberto Gadea avatar
    2 posts
    Member since:
    Apr 2010

    Posted 06 Apr 2010 Link to this post

    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
  2. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 08 Apr 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Roberto Gadea
    Roberto Gadea avatar
    2 posts
    Member since:
    Apr 2010

    Posted 09 Apr 2010 Link to this post

    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
  5. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 12 Apr 2010 Link to this post

    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.
Back to Top