AJAXManager, RadComboBox, and RadTreeview

2 posts, 0 answers
  1. John Snyder
    John Snyder avatar
    43 posts
    Member since:
    Mar 2006

    Posted 02 Jan 2008 Link to this post

    I have a combobox that uses a treeview for it's item selection.  Upon selection of an item in the treeview I want to do some server side processing. At the same time, I want all this ajaxified and thus I am using RadAjaxManager.

    What AjaxControlID do I put in for the AjaxManager to allow for the updates to work properly?  If I do not put anything in the AjaxManager it will work without a postback so I know that code is correct.  I tried adding in the RadComboBox1 as the AjaxControlID and that gives me a JS error of "Unknown runtime error".

    Here is the code for my AjaxManager:
        <telerik:RadAjaxManager id="RadAjaxManager1" runat="server">  
            <AjaxSettings>  
                <telerik:AjaxSetting AjaxControlID="RadComboBox1">  
                    <UpdatedControls>  
                        <telerik:AjaxUpdatedControl ControlID="trActions" />  
                        <telerik:AjaxUpdatedControl ControlID="trDocuments" />  
                    </UpdatedControls>  
                </telerik:AjaxSetting>  
                <telerik:AjaxSetting AjaxControlID="lbCloseDocument">  
                    <UpdatedControls>  
                        <telerik:AjaxUpdatedControl ControlID="trActions" />  
                        <telerik:AjaxUpdatedControl ControlID="trDocuments" />  
                    </UpdatedControls>  
                </telerik:AjaxSetting>  
            </AjaxSettings>  
        </telerik:RadAjaxManager>  
     

    Here is the code for my combobox:
    <telerik:RadComboBox ID="RadComboBox1" runat="server" Width="215px" Skin="Outlook">  
        <ItemTemplate>  
            <telerik:RadTreeView ID="RadTreeView1" runat="server" Height="200" OnNodeClick="RadTreeView1_NodeClick">  
                <Nodes>  
                    <telerik:RadTreeNode runat="Server" Text="First Doc" Value="/files/First.pdf" />  
                    <telerik:RadTreeNode runat="Server" Text="Second Doc" Value="/files/Second.pdf" />  
                    <telerik:RadTreeNode runat="Server" Text="Third Doc" Value="/files/Third.pdf" />  
                    <telerik:RadTreeNode runat="Server" Text="Category 1">  
                        <Nodes>  
                            <telerik:RadTreeNode runat="Server" Text="Doc 1" />  
                            <telerik:RadTreeNode runat="Server" Text="Doc 2" />  
                            <telerik:RadTreeNode runat="Server" Text="Doc 3" />  
                        </Nodes>  
                    </telerik:RadTreeNode>  
                    <telerik:RadTreeNode runat="Server" Text="Category 2">  
                        <Nodes>  
                            <telerik:RadTreeNode runat="Server" Text="Doc 4" />  
                            <telerik:RadTreeNode runat="Server" Text="Doc 5" />  
                            <telerik:RadTreeNode runat="Server" Text="Doc 6" />  
                        </Nodes>  
                    </telerik:RadTreeNode>  
                </Nodes>  
            </telerik:RadTreeView>  
        </ItemTemplate>  
        <Items>  
            <telerik:RadComboBoxItem Text="" />  
        </Items>  
    </telerik:RadComboBox> 
  2. Nikolay
    Admin
    Nikolay avatar
    3997 posts

    Posted 04 Jan 2008 Link to this post

    Hi Dustin DeFoe,

    We tested your approach locally and there were certain problems with it. We will greatly appreciate a sample project of yours to test and debug at our side. This will help us pinpoint the exact source of the problem.

    Please open a new support ticket and attach the files there. We will test them locally and try to find a working solution for you.

    Thanks for your time and cooperation.

    Regards,
    Nick
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top