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

ModalEditor usage

3 Answers 67 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Ben Brouse
Top achievements
Rank 1
Ben Brouse asked on 22 Sep 2014, 07:43 PM
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

3 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 24 Sep 2014, 05:30 PM
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.
 
0
Ben Brouse
Top achievements
Rank 1
answered on 24 Sep 2014, 06:09 PM
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.
0
Yoan
Telerik team
answered on 26 Sep 2014, 05:24 PM
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.
 
Tags
PropertyGrid
Asked by
Ben Brouse
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Ben Brouse
Top achievements
Rank 1
Share this question
or