Splitter position

2 posts, 1 answers
  1. Mirek
    Mirek avatar
    2 posts
    Member since:
    Dec 2011

    Posted 03 Dec 2011 Link to this post

    Hi,

    I'm using RadPropertyGrid with multiple RadPropertyStore objects. The properties names are quite long and their length are run-time dependent. How can I auto resize (move the splitter) columns in RadPropertyGrid to fit contents of both the widest PropertyName and the Value.

    Best regards,
    Mirek

  2. Answer
    Ivan Petrov
    Admin
    Ivan Petrov avatar
    691 posts
    Member since:
    Sep 2012

    Posted 07 Dec 2011 Link to this post

    Hello Mirek,

    Thank you for writing.

    Currently, the widths of the columns can only be set by code to a given value. You can use the following code to set the width of the value column:

    this.radPropertyGrid1.PropertyGridElement.PropertyTableElement.ValueColumnWidth = 80;

    The auto sizing for the columns is a good idea and I have added it to our Public Issue Tracking System. You can track its progress and vote for it on the following link - PITS Feature.

    I have also updated your Telerik points for the good suggestion.

    If you have further questions, I would be glad to help.

    Regards,
    Ivan Petrov
    the Telerik team

    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

Back to Top