Editable RadComboBox with RadTreeView

2 posts, 0 answers
  1. Maria
    Maria avatar
    1 posts
    Member since:
    Sep 2015

    Posted 09 Sep 2015 Link to this post

    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?

  2. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 14 Sep 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top