CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Ajax OnClick

by etwoss » 21 Feb 2015 09:41

Hi

Trying to setup my project the way the demo works.
The idea is to have a Main Form with a Menu and a region.
When a meny item is clicked , the TIWCGJQFrame based form for is show in the region.
The idea is to get an application with as less full reload of forms as possible.

For the menu i use the JQVertMenu.
On the OnCLickEvent i create the Frame associating with the menuitem and show is in the region (as done in your demo)

The problem i have is that i get an error message "Content Stream already exists" when showing the form.
I need to Set the Ajax property of the OnClick eventhandler to FALSE to prevent this error.
However this way i still get a full refresh!

Just checked the demo, here the OnClick is still Ajax:

Code: Select all
      LPanelItem.OnClick.Ajax:= True;
      LPanelItem.OnClick.OnEvent:= CGPanelItemClick;


is the 'magic' in the 'ShowFrame' method?

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by etwoss » 24 Feb 2015 10:42

No answer?
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 24 Feb 2015 10:47

Hi Eric,

Just copy our code from our demo.

If you want closer support, please request premium support.

P.S: skype me.

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 etwoss » 24 Feb 2015 11:09

Hi Alexander

I will.

Let you know if i have still problems.
Also requested premium support but did not get an answer.

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by etwoss » 26 Feb 2015 16:04

Working!
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58


Return to JQVertMenu

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.