Try Now
More in this section

Forums / Developing with Sitefinity / Create multiple view widget designers

Create multiple view widget designers

1 posts, 1 answered
  1. Tomasz
    Tomasz avatar
    2 posts
    30 Dec 2013
    09 Apr 2014
    Link to this post


    I wanted to create a designer with multiple views designer. I created two views. First one works perfect but when i add second with this line of code:

    descriptor.AddElementProperty("includeHeaderTag", this.IncludeHeaderTag.ClientID);

    i am getting an error (if i will comment this line it displays correctly but without any functionality):

    Uncaught TypeError: Cannot read property 'constructor' of undefined

    Any ideas?

    Project contains:

    /Views: 2 .ascx files, 2 js files and 2 cs files

    /: cs file that override AddViews.



    I removed line with descriptor.AddElementProperty... and it worked. Script was loaded automatically (maybe at a time when first script was loaded)

1 posts, 1 answered