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

AJAXManager, RadComboBox, and RadTreeview

1 Answer 109 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
John Snyder
Top achievements
Rank 1
John Snyder asked on 02 Jan 2008, 02:36 PM
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> 

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 04 Jan 2008, 04:39 PM
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
Tags
ComboBox
Asked by
John Snyder
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or