Maximal width of PropertyGrid value column on long texts

3 posts, 0 answers
  1. Simon
    Simon avatar
    6 posts
    Member since:
    Jan 2017

    Posted 28 Jan Link to this post

    In our application we use the autogenerate property grid fields mechanism. The property grid is located in a radpane (RadDocking) like in visual studio. The LabelColumnWidth of the property grid is set to 100px. 

    We have the problem that long string values (f.i. file paths) in the property grid value column cause horizontal scrolling. Is there any possibility to disable the horizontal scrolling if the values of property fields are to long for the field?

    We would like to have an autoresizing property grid. If the user increases the size of the dock the label column stays on 100px while the value column width increases to the the size: width of the RadPane - width of the column value.

    That would be the behaviour I would expect.

     

    Thanks and best regards,

    Simon

  2. Martin Vatev
    Admin
    Martin Vatev avatar
    113 posts

    Posted 01 Feb Link to this post

    Hi Simon,

    For your convenience, I prepared an example to demonstrate how to achieve the desired behavior. Please take a look at the implementation and consider how this approach fits your scenario.

    I hope that this helps. Should you have any other questions, do not hesitate to contact us.

    Regards,
    Martin Vatev
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Simon
    Simon avatar
    6 posts
    Member since:
    Jan 2017

    Posted 01 Feb Link to this post

    Thanks man, that's what I needed =)
Back to Top