This is a migrated thread and some comments may be shown as answers.

Rebuild property grid.

1 Answer 85 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Hugues
Top achievements
Rank 1
Hugues asked on 23 Jan 2015, 01:53 PM
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.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 28 Jan 2015, 07:35 AM
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.

Regards,
Ivan Petrov
Telerik
 

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.

 
Tags
PropertyGrid
Asked by
Hugues
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or