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

Remove left side extra space from DropDownButtons

4 Answers 103 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
Yip Yew Kwong
Top achievements
Rank 1
Yip Yew Kwong asked on 17 Feb 2012, 01:58 AM
Hi,
Can you please advice how to remove the extra space as highlighted in RED box?
Thanks.

4 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 21 Feb 2012, 12:10 PM
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 >>
0
Yip Yew Kwong
Top achievements
Rank 1
answered on 24 Feb 2012, 01:09 AM
Hi, I tried. But the compiler complained that it is read only. I am currently using RadControl for Winforms Q2 2011. tks.
0
Ivan Todorov
Telerik team
answered on 24 Feb 2012, 04:15 PM
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 >>
0
Yip Yew Kwong
Top achievements
Rank 1
answered on 27 Feb 2012, 01:43 AM
Thanks a lot. It works after changed it to LeftColumnMinWidth.
Tags
CommandBar
Asked by
Yip Yew Kwong
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Yip Yew Kwong
Top achievements
Rank 1
Share this question
or