More in this section

Forums / Developing with Sitefinity / 3.6 Designers ItemTemplates Initialize Templates deprecated

3.6 Designers ItemTemplates Initialize Templates deprecated

2 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    16 Feb 2006
    16 Feb 2009
    Link to this post

    During Setup my currents projects for new 3.6 I have some problems with Designers for publics UI

    Old methods was :


    class MyGalleryDesigner : Telerik.Libraries.WebControls.Design.GalleryDesigner
    Override InitializeTemplate() ? now?
    Override ItemTemplates is LayoutTemplatepath?

    Could you add some basic sample to Understand new features. Regards

  2. Slavo
    Slavo avatar
    295 posts
    24 Sep 2012
    18 Feb 2009
    Link to this post
    Hi Pierre,

    The GalleryDesigner now works with embedded templates, that's why it overrides the properties of the base ControlDesigner regarding templates.

    The InitializeTemplate() method was used to get the template from the path and instantiate it. This is no longer necessary, as the path of the template is in the assembly. So you can override InitializeComponent() method and do the custom logic needed for your custom designer there.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered