Autogenerated PropertyGrid checkbox event

4 posts, 0 answers
  1. Garrick
    Garrick avatar
    2 posts
    Member since:
    Jun 2015

    Posted 29 Jul 2015 Link to this post

    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

     

  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 30 Jul 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Garrick
    Garrick avatar
    2 posts
    Member since:
    Jun 2015

    Posted 31 Jul 2015 in reply to Maya Link to this post

    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

  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 03 Aug 2015 Link to this post

    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
Back to Top