Completed
Last Updated: 01 Oct 2014 13:01 by ADMIN
ADMIN
Ivan Petrov
Created on: 15 Apr 2014 10:39
Category: PropertyGrid
Type: Bug Report
1
FIX. RadPropertyGrid - Adding an empty RadPropertyStore and then adding items with RadSortOrder attributes does not order items properly.
If one sets an empty RadPropertyStore to the SelectedObject property of a RadPropertyGrid and then adds items with a RadSortOrder attribute the items will still be sorted by their name.



WORKAROUNDS:

1. Populate the store before you set it to the property grid.

2. Add a dummy item to the store before you set it to the property grid and then remove it:
RadPropertyStore store = new RadPropertyStore();
store.Add(typeof(bool), "dummy", false);
this.radPropertyGrid1.SelectedObject = store;
store.RemoveAt(0);

3. After you add the first item to the store call the following method:
this.radPropertyGrid1.PropertyGridElement.PropertyTableElement.ListSource.CollectionView.EnsureDescriptors();
0 comments