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

Autogenerated PropertyGrid checkbox event

3 Answers 67 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Garrick
Top achievements
Rank 1
Garrick asked on 29 Jul 2015, 06:34 PM

I'm looking for a way for an autogenerated propertygrid checkbox item to disable (IsReadOnly/ReadOnlyEditorState) other items in the grid.

Is there an event or a isSelected for the generated checkbox available somehow?

 

Thank you,

Garrick

 

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 30 Jul 2015, 12:23 PM
Hello Garrick,

You can verify what the value of the underlying property is and once it has changed, to update the other elements. For example, if the property definition is bound to IsActive property, at the moment this property is changed and the code passes through its setter, you will be able to modify the other elements. 
Will that be an appropriate approach for your scenario ? 


Regards,
Maya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Garrick
Top achievements
Rank 1
answered on 31 Jul 2015, 04:04 PM

Hi, Maya

Sorry for being unclear.

I have two questions,

1. When using an auto generated grid, I am unable to use the IsReadOnly and ReadOnlyEditorState. It only applies to the whole grid. Is there a way to use it on specific items?

2. I wanted to know if there was a way to add Events similar to adding properties in the xaml code. At the moment I created my own event through the setter, just wanted to know my options.

Thank you,

Garrick

0
Maya
Telerik team
answered on 03 Aug 2015, 08:11 AM
Hello Garrick,

You can try binding IsReadOnly property of the PropertyDefinition. More info can be found in the "Read Only Property Definition" article. 
As for the second questions, when do you want those events to fire ? 


Regards,
Maya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
PropertyGrid
Asked by
Garrick
Top achievements
Rank 1
Answers by
Maya
Telerik team
Garrick
Top achievements
Rank 1
Share this question
or