Page 1 of 1

Creating Panels @ Run-Time!

PostPosted: 21 Jun 2016 07:29
by Aggie85
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

Re: Creating Panels @ Run-Time!

PostPosted: 21 Jun 2016 09:28
by Alexander Bulei
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.

Re: Creating Panels @ Run-Time!

PostPosted: 21 Jun 2016 14:27
by Aggie85
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

Re: Creating Panels @ Run-Time!

PostPosted: 21 Jun 2016 14:30
by Alexander Bulei
Hi Aggie85,

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

Best Regards.

Re: Creating Panels @ Run-Time!

PostPosted: 21 Jun 2016 14:38
by Aggie85
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

Re: Creating Panels @ Run-Time!

PostPosted: 21 Jun 2016 17:03
by Alexander Bulei
Hi,

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


Thank you :)

Best Regards.