Extra button(s) next to the dropdown arrow

4 posts, 0 answers
  1. Gilbert van Veen
    Gilbert van Veen avatar
    68 posts
    Member since:
    Oct 2009

    Posted 05 Jun 2014 Link to this post

    Hi,

    Is it possible to add extra buttons next to the Arrow-dropdown button?
    I want to add two buttons with their own events etc.

  2. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 06 Jun 2014 Link to this post

    Hi Gilbert,

    Thank you for writing.

    Here is how you can add additional buttons, next to the arrow button in RadDropDownList:
    RadButtonElement b1 = new RadButtonElement();
    b1.Text = "+";
    radDropDownList1.DropDownListElement.Children[2].Children.Add(b1);
     
    RadButtonElement b2 = new RadButtonElement();
    b2.Text = "-";
    radDropDownList1.DropDownListElement.Children[2].Children.Add(b2);

    I hope that you find this information useful.

    Regards,
    Stefan
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Gilbert van Veen
    Gilbert van Veen avatar
    68 posts
    Member since:
    Oct 2009

    Posted 06 Jun 2014 in reply to Stefan Link to this post

    Hi,

    Thanks, that's great!

    How can I set the size of the button?

  5. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 09 Jun 2014 Link to this post

    Hello,

    The button will size according to its content, however, if you want to set a custom size, you can set its AutoSize property to false, and set the desired size via the Size property.

    Regards,
    Stefan
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top