locked
Telerik Controls in DD FieldTemplates RRS feed

  • Question

  • User-1968880796 posted

    I want to use the Telerik's controls. Do I edit the existing fieldtemplates or do I write new partial classes and place them in the FieldTemplates folder?

    Thanks!

    JS

    Friday, November 21, 2008 9:00 AM

Answers

  • User660823006 posted

    First off you might want to check out this post by Telerik: http://blogs.telerik.com/AtanasKorchev/Posts/08-05-22/RadControls_and_ASP_NET_Dynamic_Data_-_Update.aspx

    You have two choices:

    a) Create new field templates and use UIHint attribute when you want to use them.

    b) Replace the existing field templates with ones that use the Telerik controls.

    I would do b if I wanted to use their controls everywhere or a if I wanted to use them selectively

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 21, 2008 9:28 AM
  • User-1968880796 posted

    I prefer 'b' as well, but my concern is that later on if the database tables/fields get modified (which I am sure they will) then the existing field templates will get written over. Is that right?

    Thank you!

    JS

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 21, 2008 9:43 AM
  • User-1005219520 posted

    No, the field templates are never overwritten. The data model will change as the DB schema changes, but not the field/page templates.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 21, 2008 1:42 PM
  • User-1968880796 posted

    Perfect!

    Thanks!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 21, 2008 1:51 PM

All replies

  • User660823006 posted

    First off you might want to check out this post by Telerik: http://blogs.telerik.com/AtanasKorchev/Posts/08-05-22/RadControls_and_ASP_NET_Dynamic_Data_-_Update.aspx

    You have two choices:

    a) Create new field templates and use UIHint attribute when you want to use them.

    b) Replace the existing field templates with ones that use the Telerik controls.

    I would do b if I wanted to use their controls everywhere or a if I wanted to use them selectively

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 21, 2008 9:28 AM
  • User-1968880796 posted

    I prefer 'b' as well, but my concern is that later on if the database tables/fields get modified (which I am sure they will) then the existing field templates will get written over. Is that right?

    Thank you!

    JS

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 21, 2008 9:43 AM
  • User-1005219520 posted

    No, the field templates are never overwritten. The data model will change as the DB schema changes, but not the field/page templates.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 21, 2008 1:42 PM
  • User-1968880796 posted

    Perfect!

    Thanks!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 21, 2008 1:51 PM