Rebuild property grid.

2 posts, 0 answers
  1. Hugues
    Hugues avatar
    54 posts
    Member since:
    Sep 2014

    Posted 23 Jan 2015 Link to this post

    Is possible to rebuild a property grid or add new item to the SelectedObject without having to tear the entire property grid down and rebuild it. The reason i want to do this is because i want the property grid to still have everything i had expended before adding an new item. When i tear everything down and rebuild it collapsed everything. Is there any way the property grid can remember that last state it was in before adding or removing, that way everything stays expended the way they were before something was added.

  2. Ivan Petrov
    Ivan Petrov avatar
    701 posts

    Posted 28 Jan 2015 Link to this post

    Hi Hugues,

    Thank you for writing.

    Adding properties to the SelectedObject can mean several things and might require several approaches to your request:
    1. If you have an instance of a class that you dynamically change the number of properties you will have to save the expanded state of the properties and then restore it after you set the SelectedObject property anew.
    2. If you are using a RadPropertyStore adding/removing items does not affect the state of the rest of the property grid items.

    If you can provide some more details on your setup, I would be able to give you a more accurate response for your exact case.

    I hope this will be useful. Should you have further questions, I would be glad to help.

    Ivan Petrov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top