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

[Solved] How Do I Bind Related Combo Boxes to a Hierarchical Data Source?

5 Answers 174 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 31 Oct 2009, 05:45 PM
Is it possible to bind the drop down lists of a set of related combo boxes to a hierarchical data source so that the lists sync up on the client w/o a post back?

5 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 04 Nov 2009, 11:39 AM
Hi Brian,

I'm afraid that this is not possible, every combobox should be binded separately.

Best 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.
0
Brian
Top achievements
Rank 1
answered on 06 Nov 2009, 06:05 PM
Yana

Per the drop down templates demo, I ended up binding a tree to the hierarchical data source then embedded the tree in a drop down. Selecting a leaf node on the tree is the same as selecting a value from the last of a set of dependant (related) drop downs. All of this is done on the client. I don't need the values of the non-leaf nodes (path to the leaf) for my purposes but they are readily available.

0
Yana
Telerik team
answered on 12 Nov 2009, 11:49 AM
Hi Brian,

I'm not sure I understand the question, could you please explain in more details? Thanks

All the best,
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.
0
Brian
Top achievements
Rank 1
answered on 12 Nov 2009, 06:50 PM
Hey Yana

For example, I want a user to select a car manufacturer and model, e.g. Chevy Camaro before I fill a grid with upgrade option details. The UI for this manufacturer-model choice is two related drop downs. The obvious solution is to fill the manufacturer list on the server server side and configure it to postback when it changes. On the postback I can fill the model list with models for the selected manufacturer. Of course, I can optimize the postbacks with AJAX but it would be better if I delivered the data in a hierarchical format to the browser and did the car model drop down filtering on client.

I'm sure I can do this with Javascript on the client but a declarative data binding solution would be simpler. I guess the real question is, does Telerik have a hierarchical data source that acts as a client side data binding source?

In the meantime, per my previous post, I have worked around this by embedding a tree in a combo box. The tree binds to a hierarchical data source, in the for of a self-join table, and represents both the manufacturer and model choice in a single UI element without a postback.
0
Simon
Telerik team
answered on 17 Nov 2009, 03:09 PM
Hi Brian,

No, we do not provide such a data source.

Yet, will the Load On Demand feature be useful in your case?

Sincerely yours,
Simon
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
Brian
Top achievements
Rank 1
Answers by
Yana
Telerik team
Brian
Top achievements
Rank 1
Simon
Telerik team
Share this question
or