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

combobox text is not getting the node text

5 Answers 67 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ahmad Alkhiary
Top achievements
Rank 1
Ahmad Alkhiary asked on 26 Aug 2008, 02:22 AM

I tried to create a combobox with treeview and I did basicaly exactly what you do in the ComboBox/Tree example.

http://www.telerik.com/DEMOS/ASPNET/Prometheus/TreeView/Examples/Functionality/TreeViewComboBox/DefaultCS.aspx

I am placing the combobox in a user control and the user control inside a content page which is inherits from a master page. I placed a script manager in the master page. My sample application is ASP.NET 2  AJAX-Enabled.

The problem is when I click on any tree node the combobox text is not getting the node text value and also the tree view is not disappearing after selection of the node.

Please how can I resolve this problem?

5 Answers, 1 is accepted

Sort by
0
Ahmad Alkhiary
Top achievements
Rank 1
answered on 26 Aug 2008, 02:58 AM

Dear Telerik Support,

I found my problem. I did not linked the treeview event with the JavaScript function (OnClientNodeClicking="nodeClicking")

But unfortunately now when I clicked on any node I'm getting a JavaScript error ( "null"  is null or not an object ).

Please what cause this problem and how can I resolve it?

Thank you.
0
Veselin Vasilev
Telerik team
answered on 26 Aug 2008, 07:04 AM
Hello Ahmad Alkhiary,

Can you tell us what is the version of the controls that you are using?
Are they the "classic" controls (you posted this in the RadComboBox "classic" forum) or the ajax controls (you are referring the new demos).

Regards,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ahmad Alkhiary
Top achievements
Rank 1
answered on 26 Aug 2008, 09:57 AM

I'm sorry I posted my question in the wrong forum.

I'm using AJAX controls (Ver. 2008.1.515.20).

Thank you.

0
Accepted
Veselin Vasilev
Telerik team
answered on 26 Aug 2008, 12:32 PM
Hello Ahmad Alkhiary,

I have attached a sample project which demonstrates how to implement treeview in combobox.

Please download it and give it a try.

We are releasing service pack 1 later today, so I recommend that you download the latest bits from your Client.Net account tomorrow.

All the best,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ahmad Alkhiary
Top achievements
Rank 1
answered on 26 Aug 2008, 03:31 PM

Dear Veskoni,

Thank you for the sample project. My problem is resolved.

Thank you again.

Tags
ComboBox
Asked by
Ahmad Alkhiary
Top achievements
Rank 1
Answers by
Ahmad Alkhiary
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or