Change EditTemplate for RadDataForm at runtime

2 posts, 0 answers
  1. Spencer
    Spencer avatar
    2 posts
    Member since:
    Sep 2013

    Posted 14 Aug 2014 Link to this post

    I have a RadDataForm and an EditTemplate defined. What I would like to do is have two different EditTemplates based on user role (different fields and edit capabilities), and switch to the appropriate one at run time. Is there a way to do this?
  2. Yoan
    Yoan avatar
    1053 posts

    Posted 15 Aug 2014 Link to this post

    Hello Spencer,

    I can suggest to use a DataTemplate Selector as demonstrated in this help article. Please, do not hesitate to contact me if you encounter any problems.

    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. DevCraft banner
Back to Top