Modify Padding of RadComboBox Item

Thread is closed for posting
2 posts, 0 answers
  1. Web
    Web avatar
    88 posts
    Member since:
    Nov 2006

    Posted 01 Nov 2007 Link to this post

    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
  2. Peter
    Peter avatar
    1153 posts

    Posted 02 Nov 2007 Link to this post

    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:

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

    All the best,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top