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

RadComboBox with TreeView

1 Answer 49 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Amitkumar
Top achievements
Rank 1
Amitkumar asked on 09 Dec 2009, 10:44 AM
Hi All,

I am using RadComboBox with TreeView as mention below:
OnNodeClick="rtvAttendeeType_NodeClick" event update other controls available in page and OnClientNodeClicking="nodeClicking" to close the combobox, but fire only client side event not fire server side event. what's wrong with this code please reply me.

function nodeClicking(sender, args) {
            //alert("nodeClicked");
            var comboBox = $find("<%= rcbAttendeeType.ClientID %>");
            comboBox.attachDropDown();
            var node = args.get_node()

            comboBox.set_text(node.get_text());

            comboBox.trackChanges();
            comboBox.get_items().getItem(0).set_value(node.get_text());
            comboBox.commitChanges();

            comboBox.hideDropDown();
        }



<telerik:RadComboBox ID="rcbAttendeeType" runat="server" EmptyMessage="Select Attendee Type" AutoPostBack="true"
                ShowToggleImage="True" Style="vertical-align: middle;" OnClientDropDownOpened="OnClientDropDownOpenedHandler"
                HighlightTemplatedItems="false" OnClientDropDownClosed="onDropDownClosing" Width="250px"
                TabIndex="28">
                <ItemTemplate>
                    <div id="div1" onclick="StopPropagation(event);">
                        <telerik:RadTreeView runat="server" ID="rtvAttendeeType" EnableEmbeddedSkins="false"
                            Height="100%" OnNodeClick="rtvAttendeeType_NodeClick" OnClientNodeClicking="nodeClicking">
                            <DataBindings>
                                <telerik:RadTreeNodeBinding Expanded="True" />
                            </DataBindings>
                        </telerik:RadTreeView>
                    </div>
                </ItemTemplate>
                <Items>
                    <telerik:RadComboBoxItem Text="" />
                </Items>
</telerik:RadComboBox>



Thanks & Regards,
Amit



1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 14 Dec 2009, 10:38 AM
Hi Amit,

I've tested the code and OnNodeClick event is fired without a problem.  Could you please isolate the issue in a simple runnable page and send it to us? You should open a support ticket and attach it there. Thanks in advance


Kind regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Amitkumar
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or