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

Clear Selection and image as comboBox

6 Answers 97 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Rui Martins
Top achievements
Rank 1
Rui Martins asked on 06 Aug 2010, 09:35 AM
Hi,

i have two questions and i hope you can help me...

at my app i have an image that when the user click it, that image works like a comboBox, what´s the better way to do this? any example? i understand that probably i have to edit the radCombBox template...

After the user selected an item i wish that my Image/ComboBox clear the selection, there is any property to do this? but i don´t want to do this in the code behind because i am using MVVM... example?

thanks to all,

Rui martins

6 Answers, 1 is accepted

Sort by
0
Rui Martins
Top achievements
Rank 1
answered on 09 Aug 2010, 09:23 AM
Hi,

i already did the second issue i had, but i need your help on that:

at my app i have an image that when the user click it, that image works like a comboBox, what´s the better way to do this? any example? i understand that probably i have to edit the radCombBox template...

thanks,

Rui M.
0
Rui Martins
Top achievements
Rank 1
answered on 09 Aug 2010, 04:48 PM
Any help?? suggestion?


Rui M.
0
Konstantina
Telerik team
answered on 09 Aug 2010, 05:06 PM
Hello Rui Martins,

Thank you for contacting us.

You can try our DropDownButton, instead. You can find an example of its use in this online demo.

If you have further questions please let us know.

Sincerely yours,
Konstantina
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
Rui Martins
Top achievements
Rank 1
answered on 09 Aug 2010, 05:29 PM
i think i had not explain me well.

what i need is to have an IMAGE that works like a comboBox. when i click a list os items appears and i can select on of this like a comboBox, i don´t want that this items are images. I just want to put an image as ComboBox that i can click it...

Rui M.
0
Rui Martins
Top achievements
Rank 1
answered on 10 Aug 2010, 09:48 AM
done!

i have to delete the path in   <ControlTemplate x:Key="ArrowTemplateNonEditableCombobox" TargetType="ContentControl"> and put instead that my image path.

anyone know how i can change the comboBox background when the user click?
thanks

Rui M.
0
Konstantina
Telerik team
answered on 11 Aug 2010, 12:39 PM
Hi Rui Martins,

The ArrowTemplateNonEditableCombobox template is the template of the arrow of the ComboBox, not for the whole ComboBox. The ComboBox itself is one ButtonChrome control. To achieve your goal you will have to replace this control with an Image, for example. But in that way you will lose the states of the button. However, you can define your own states for the Image, like the one you ask when the user already have chosen an item.

Hope this information helps. If you have further questions let us know.

Best wishes,
Konstantina
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
Rui Martins
Top achievements
Rank 1
Answers by
Rui Martins
Top achievements
Rank 1
Konstantina
Telerik team
Share this question
or