Clear Selection and image as comboBox

7 posts, 0 answers
  1. Rui Martins
    Rui Martins avatar
    34 posts
    Member since:
    Apr 2010

    Posted 06 Aug 2010 Link to this post

    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
  2. Rui Martins
    Rui Martins avatar
    34 posts
    Member since:
    Apr 2010

    Posted 09 Aug 2010 Link to this post

    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.
  3. DevCraft banner
  4. Rui Martins
    Rui Martins avatar
    34 posts
    Member since:
    Apr 2010

    Posted 09 Aug 2010 Link to this post

    Any help?? suggestion?


    Rui M.
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 09 Aug 2010 Link to this post

    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
  6. Rui Martins
    Rui Martins avatar
    34 posts
    Member since:
    Apr 2010

    Posted 09 Aug 2010 Link to this post

    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.
  7. Rui Martins
    Rui Martins avatar
    34 posts
    Member since:
    Apr 2010

    Posted 10 Aug 2010 Link to this post

    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.
  8. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 11 Aug 2010 Link to this post

    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
Back to Top
DevCraft banner