ModalEditor usage

4 posts, 0 answers
  1. Ben Brouse
    Ben Brouse avatar
    2 posts
    Member since:
    Feb 2010

    Posted 22 Sep 2014 Link to this post

    Is there an example available that demonstrates the usage of the ModalEditor class for the property grid?    

    I'd like to specify my own editor template for a particular field using the DataTemplateSelector.   The editor would display a modal window.

    Thanks.

    Ben Brouse
  2. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 24 Sep 2014 Link to this post

    Hi Ben,

    I would suggest to check the Editor Attribute help article and this gitHub demo.

    Although GitHub is a very well-known platform we saw a better and easier approach for reviewing our examples developing our SDK Samples Browser. You can also use it to review the examples.

    Regards,
    Yoan
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ben Brouse
    Ben Brouse avatar
    2 posts
    Member since:
    Feb 2010

    Posted 24 Sep 2014 in reply to Yoan Link to this post

    Thanks for much for that direction!   I have it up and running now.     

    One thing that isn't clear is howto control what is displayed in the PropertyGrid when you apply an Editor using the technique like you have for the PhoneNumber in the example.     I've stumbled over the fact that you can add a ToString override but that only gets called once and doesn't let me change the displayed value after the Editor is dismissed.

    Any guidance on this?    Thanks.
  5. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 26 Sep 2014 Link to this post

    Hi Ben,

    Indeed you are right. Unfortunately, there is no easy way to achieve the desired result. A possible solution could be placing a TextBlock in the template of the ModalEditor. Then you can try to bind its Text property to a property of your item.

    Please let me know if you need further assistance with this.

    Regards,
    Yoan
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top