Modify Padding of RadComboBox Item

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
    Admin
    Peter avatar
    1148 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:
    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top