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

TreeInComboBox: Only allow lowest level selection

5 Answers 145 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Vanja Oljaca
Top achievements
Rank 1
Vanja Oljaca asked on 26 Feb 2010, 08:16 AM
I am using the sample TreeView In ComboBox from this blog (http://blogs.telerik.com/valerihristov/posts/09-08-27/treeview_in_combobox_take_3_silverlight_3_wpf_and_radcontrols.aspx) and it looks really good. Now I would like to modify it a little by only allowing selection of the lowest level item from the tree view. How can I disable selection of higher level items but still allow the items to be collapsed?

5 Answers, 1 is accepted

Sort by
0
Accepted
Miro Miroslavov
Telerik team
answered on 26 Feb 2010, 12:54 PM
Hi Vanja Oljaca,

We've created new example with the needed modifications.
Please find the attached solution.

All the best,
Miro Miroslavov
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Vanja Oljaca
Top achievements
Rank 1
answered on 17 Mar 2010, 06:45 AM
Thank you and sorry for the late reply.

I have noticed that there are multiple ways of achieving the same effect (Using a DropDownButton, overriding RadComboBox style, etc). Which method would you say is the best for WPF?

Regards,

Vanja
0
Bobi
Telerik team
answered on 22 Mar 2010, 08:33 AM
Hi Vanja Oljaca,

I would advice you to use DropDownButton for achieving the desired functionality.

Greetings,
Bobi
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Bobi
Telerik team
answered on 22 Mar 2010, 08:34 AM
Hi Vanja Oljaca,

I would advice you to use DropDownButton for achieving the desired functionality.

Greetings,
Bobi
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Bobi
Telerik team
answered on 22 Mar 2010, 10:36 AM
Hi Vanja Oljaca,

I would advice you to use DropDownButton for achieving the desired functionality.

Greetings,
Bobi
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Vanja Oljaca
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Vanja Oljaca
Top achievements
Rank 1
Bobi
Telerik team
Share this question
or