Create multiple view widget designers

Posted by Community Admin on 04-Aug-2018 14:03

Create multiple view widget designers

All Replies

Posted by Community Admin on 09-Apr-2014 00:00

Hello,

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.

 Thanks

Resolved:

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

This thread is closed