CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Problems with AjaxRerender

by sesam » 20 Feb 2015 16:23

Hi,

sometimes very strange things happen after AjaxRerender.
Please have a look at the part of your V2-Demo attached. Press the test button
and try to open the context menu again...

Best regards,
Andreas
You do not have the required permissions to view the files attached to this post.
sesam
 
Posts: 153
Joined: 09 Apr 2013 16:19

by Alexander Bulei » 20 Feb 2015 17:24

Hi sesam,

What version do you have?

Works as expected here.

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 sesam » 23 Feb 2015 14:45

Hi,
I'm using 2.5.0.24, IW 14.0.37 and XE5...

Best Regards,
Andreas
sesam
 
Posts: 153
Joined: 09 Apr 2013 16:19

by Alexander Bulei » 23 Feb 2015 15:00

Hi sesam,

Can you explain better please, what happens (with screenshots or video)?

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 sesam » 23 Feb 2015 17:16

Hi,
after clicking the test button (IWCGJQContextMenu.AjaxReRender)
all the controls in IWFrameRegion don't react / fire any more.
I could mail you my compiled JQueryDemoIW14_V2.exe...

Best Regards,
Andreas
sesam
 
Posts: 153
Joined: 09 Apr 2013 16:19

by Eric.P » 09 Dec 2016 17:14

UP !

Hi !

I have exactly the same problem with the last beta release 3.0.0.101.

Here the process :

- I have a frame with a grid alClient inside
- My contextmenu is set to the grid
- My context have a first item "Filter" with a subitem type checkbox "Activate".
- On the onchange of the checkbox item i change the property selected of the subitem.
- Now i need to call ajaxReRender on the event Hide of the contextmenu if i want to have the subitem checked when i reopen
- After the hide event, my grid doesn't respond anymore, the context menu doesn't show too. It's like there is an invisible region above the frame.

Regards
Last edited by Eric.P on 09 Dec 2016 17:17, edited 1 time in total.
CG 3.0.0.115 / IW 14.59 / XE8
Eric.P
 
Posts: 24
Joined: 24 Aug 2016 15:07

by Alexander Bulei » 09 Dec 2016 17:16

Hi Eric.P,

Please check your browser console, for js error (F12).

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 Eric.P » 09 Dec 2016 17:32

There are no errors when i open / hide the contextmenu but i have an error when i display the frame

4 png attached.

At the ERR4, i can't do anything, right click show the contextmenu of googlechrome, i can't click on the grid or the nav buttons on the bottom of the grid.
You do not have the required permissions to view the files attached to this post.
CG 3.0.0.115 / IW 14.59 / XE8
Eric.P
 
Posts: 24
Joined: 24 Aug 2016 15:07

by Alexander Bulei » 09 Dec 2016 17:38

Hi Eric.P,

Try to set ServerController.JavascriptOptions.Debug = True & UseUncompressedFiles = True

Then, check the errors again.

I guess, it's because of bad usage of AjaxReRender....

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 Eric.P » 09 Dec 2016 17:54

Re,

I set the options debug and UseUncompressedFiles to trueand i got more info.

The console still doesn't have error or warning, the moment when i close the context menu is on the png attached.

For the use, i click on the hide event of the contextmenu and i wrote this :

procedure TwebGridFra.IWCGJQContextMenuGridJQContextMenuOptionsEventsHide(
Sender: TObject; AParams: TStringList);
begin
IWCGJQContextMenuGrid.AjaxReRender;
end;

Regards.
You do not have the required permissions to view the files attached to this post.
CG 3.0.0.115 / IW 14.59 / XE8
Eric.P
 
Posts: 24
Joined: 24 Aug 2016 15:07

Next

Return to JQContextMenu

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.