Remove left side extra space from DropDownButtons

5 posts, 0 answers
  1. Yip Yew Kwong
    Yip Yew Kwong avatar
    14 posts
    Member since:
    May 2010

    Posted 16 Feb 2012 Link to this post

    Hi,
    Can you please advice how to remove the extra space as highlighted in RED box?
    Thanks.
  2. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 21 Feb 2012 Link to this post

    Hello Yip Yew Kwong,

    Thank you for your question.

    As far as I can see from your screenshot, you are using a CommandBarDropDownButton. Here is how you can reduce the width of the left column of the drop-down menu:
    ((RadDropDownMenuElement)this.commandBarDropDownButton1.DropDownMenu.PopupElement).Layout.LeftColumnMinWidth = 1;

    Hope this helps. Feel free to ask if you have any additional questions.

    Greetings,
    Ivan Todorov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Yip Yew Kwong
    Yip Yew Kwong avatar
    14 posts
    Member since:
    May 2010

    Posted 23 Feb 2012 Link to this post

    Hi, I tried. But the compiler complained that it is read only. I am currently using RadControl for Winforms Q2 2011. tks.
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 24 Feb 2012 Link to this post

    Hi Yip Yew Kwong,

    I have checked the version history of this property and it appears that it has never been read-only. Please make sure you are using the LeftColumnMinWidth property since you might have mistaken it with the LeftColumnWidth property, which is read-only.

    Let me know if you are still experiencing difficulties.

    Kind regards,
    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  6. Yip Yew Kwong
    Yip Yew Kwong avatar
    14 posts
    Member since:
    May 2010

    Posted 26 Feb 2012 Link to this post

    Thanks a lot. It works after changed it to LeftColumnMinWidth.
Back to Top
UI for WinForms is Visual Studio 2017 Ready