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

Modify Padding of RadComboBox Item

1 Answer 66 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Web
Top achievements
Rank 1
Web asked on 01 Nov 2007, 08:59 PM
How can i modify dynamically the MArgin/ PAdding Value of a RadComboBoxItem?

All i get is an error:

Cannot modify the return value of 'Telerik.Wincontrols.RadElement.Margin' becasue it is not a varible


thank you

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 02 Nov 2007, 01:17 PM
Hello Kerstin,

You cannot directly modify members of Padding and Margin. Properties are not the same as fields.
You can only get and set the value of a property. You can modify the margin properties using the following convention:

radComboBoxItem1.Margin = new Padding(0, 1, 0, 0);

This issue also described here:
http://msdn2.microsoft.com/en-us/library/wydkhw2c(vs.71).aspx

Hope that helps. If you have any additional questions, please do not hesitate to contact us.

All the best,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Web
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or