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

[Solved] Set initial templated combobox value containing treeview which is loaded on demand

2 Answers 106 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Prabir
Top achievements
Rank 1
Prabir asked on 07 May 2008, 07:03 PM
I have a templated radcombobox, which contains radtreeview inside. My treeview is loaded on demand using serversidecallback.
This Combobox is inside a formview and uses objectdatasource, and is supposed to contain the value "ParentId" which is retrieved from objectdatasource.
By using ajax javascript, i have managed to set the value of combobox using set_value() in treeview, onclientnodeclick. so when i click update after click a tree node it works.
but, since treeview is populated on demand, i would like to set the inital value of combobox to be retrieved from object datasource but don't populate the treenodes. if i dont set the intial value, that means i have not selected the node, so the parentnode is always 0 or null.
when the combobox is dropped down for the first time, i would like it to auto load the treenodes to the specified node.
i cannot use selectedvalue of the combobox because the treeview is populated on demand? any ideas?

2 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 08 May 2008, 07:46 AM
Hello Prabir,

I am afraid I cannot completely understand your goal. Could you please put together a small and running project and attach the files to a new support thread? We will test your logic at our side and try to find a working solution for you.

Thanks for your time.

Expecting your reply,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Veselin Vasilev
Telerik team
answered on 10 May 2008, 01:09 PM
Hello Prabir,

The post is related to this one: http://www.telerik.com/community/forums/thread/b311D-bdekhm.aspx
so I am closing this.

All the best,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
Prabir
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Veselin Vasilev
Telerik team
Share this question
or