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

Editable RadComboBox with RadTreeView

1 Answer 246 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Maria
Top achievements
Rank 1
Maria asked on 09 Sep 2015, 06:11 PM

Hello,

I have a RadTreeView which I need to display inside a combobox and also to be able to sort/filter through it. I can't seem to make it work using your examples from here

http://www.telerik.com/blogs/treeview-in-a-combobox-dropdown-using-radcontrols-for-silverlight and here

http://www.telerik.com/blogs/treeview-in-combobox-take-3-silverlight-3-wpf-and-radcontrols . (they don't seem to work/compile either)

What I did manage was to partly replicate the behaviour I wanted using your Rad​DropDownButton tutorial provided here: http://www.telerik.com/blogs/treeview-in-combobox-with-radcontrols-for-silverlight-or-wpf-final-take

Problem is I really need it to be sortable the way ComboBox is. Can you show me an updated example I can use to make this work?

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 14 Sep 2015, 11:18 AM
Hi Marie,

By default RadComboBox is not designed to display data in hierarchical manner. Thus placing RadTreeView inside editable RadComboBox might cause the desired by you filtering behavior and functionality not to work as expected - the control does not have implemented logic for filtering hierarchical data.

However, what we could suggest you is to use RadAutoCompleteBox instead. With some modifications like custom FilteringBehavior and custom highlight of the matching items the desired behavior and functionality could be achieved. We have created a sample project that demonstrates that - please, check it.

Hopes this helps. 

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ComboBox
Asked by
Maria
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or