CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Creating Panels @ Run-Time!

by Aggie85 » 21 Jun 2016 07:29

Howdy!

I have a JQMGridPanel on a page. If I create (AddNewPanel) a specific # of grid panels in my page constructor, my Ajax routines still work.

If I add a TIWCGJQMLabel to each panel I have created above and set a text value, the panels / labels show on my page BUT my AJAX events no longer get fired.

Is this a bug or do I need to create the panels in a different way?

Thanks!

Aggie85
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24

by Alexander Bulei » 21 Jun 2016 09:28

Hi,

my AJAX events no longer get fired.


Which ones?

f I add a TIWCGJQMLabel to each panel I have created above and set a text value


Are you using CGCallBackDisableAjaxResponse and CGCallBackEnableAjaxResponse?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Aggie85 » 21 Jun 2016 14:27

Howdy!

Alexander Bulei wrote:Hi,

my AJAX events no longer get fired.


Which ones?



Every one on the form!!

f I add a TIWCGJQMLabel to each panel I have created above and set a text value

Are you using CGCallBackDisableAjaxResponse and CGCallBackEnableAjaxResponse?


No. No reason to because I am creating these controls in my forn's CONSTRUCTOR.

I tried to add them any how and I got an exception that

Method cannot be called in non Ajax Requests Processing!

Any other suggestions? The only thing I guess I can try is to create the panels in the designer and just set their visibility as I need it.

Thanks!

Aggie85
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24

by Alexander Bulei » 21 Jun 2016 14:30

Hi Aggie85,

Can you send the simple demo please?
T.I.A

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Aggie85 » 21 Jun 2016 14:38

i will put one together later today and email it to you.

I just tried creating and hiding the panels quickly in the designer and everything works!

Thanks!

Aggie85
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24

by Alexander Bulei » 21 Jun 2016 17:03

Hi,

i will put one together later today and email it to you.


Thank you :)

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQMGridPanel

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.