Rounded Corners RadCombobox

9 posts, 0 answers
  1. Iwan van Ee
    Iwan van Ee avatar
    21 posts
    Member since:
    Dec 2009

    Posted 10 Aug 2011 Link to this post

    I managed to get Rounder Corners for the combobox, but I also need to have the selected item to have rounded corners, where can I set that?
    The first selected item in the items list has rectangle corners as you can see in the screenshot.


  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 11 Aug 2011 Link to this post

    Hi Iwan,

    In order to achieve this you have to edit the style of the RadComboBoxItem as well. You can easily do this with Expression Blend. Just drop a ComboBox control on the design surface, right-click it and choose from the menu Edit Template->Edit a Copy. Do the same for the RadComboBoxItem. Then Blend will generate all the needed resources.
    There find the Border with x:Name="HighlightVisual". In it there is another Border of which you have to set the CornerRadius to SplitButton_SpanCornerRadius.

    Hope this helps.

    All the best,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
  3. DevCraft banner
  4. Iwan van Ee
    Iwan van Ee avatar
    21 posts
    Member since:
    Dec 2009

    Posted 11 Aug 2011 Link to this post

    I forgot the RadComboBoxItem :) That's why I could not find the HighlightVisual.

    I also needed to set the ItemContainerStyle="{StaticResource RadComboBoxItemMyStyle}"

    Thanks again, for the good service.
  5. Joshua
    Joshua avatar
    22 posts
    Member since:
    Sep 2010

    Posted 28 Oct 2012 Link to this post

    Hi,
    i am working on application which we need to have rounded conere radcombobox.
    can any one please post the style to get that?

  6. Joshua
    Joshua avatar
    22 posts
    Member since:
    Sep 2010

    Posted 29 Oct 2012 Link to this post

    Hi Iwan,

    Can you please post you style to get the rounded coners for the RadComboBox?

    Thanks in advance
  7. Masha
    Admin
    Masha avatar
    355 posts

    Posted 31 Oct 2012 Link to this post

    Hello Joshua,

    In order to set rounded corners you should modify CornerRadius property on ButtonChrome inside NonEditable template of RadComboBox.  Please note you might need to apply the changes to the Editable template, as well.

    Greetings,
    Maria
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. Joshua
    Joshua avatar
    22 posts
    Member since:
    Sep 2010

    Posted 01 Nov 2012 Link to this post

    Maria,

    Can you please post the styles for the radcombobox editable and noneditable templates.

    Thanks in advance.
  9. Joshua
    Joshua avatar
    22 posts
    Member since:
    Sep 2010

    Posted 02 Nov 2012 Link to this post

    Hi Maria,

    I got it.  Thanks for your help.
  10. Masha
    Admin
    Masha avatar
    355 posts

    Posted 02 Nov 2012 Link to this post

    Hi Joshua,

    We are glad you have managed to find a solution by yourself.

    Kind regards,
    Maria
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner