Completed
Last Updated: 19 Jul 2013 05:36 by ADMIN
ADMIN
Dimitar
Created on: 19 Jul 2013 05:36
Category: PropertyGrid
Type: Bug Report
0
FIX. PropertyGrid - checkboxes stays indeterminate when modifying store item twice in a row
To reproduce:
- Create a PropertyGrid and initialize it like this:
PropertyStoreItem checkboxItem = new PropertyStoreItem(typeof(bool), "Checkbox", true);
_store = new RadPropertyStore();
_store.Add(checkboxItem);
this.radPropertyGrid1.SelectedObject = _store;

-change the store item first to null then to false

Workaround:
-Before you set the item value to false set it to true first like this:
item.Value = null;

//set first to true then to false
item.Value = true;
item.Value = false;
0 comments