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
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);