CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

New features in 1.7-2.1, some questions.

General discussion

by Jorge Sousa » 05 May 2014 16:13

For having js running after a region render, you have to call AddInitProc
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 05 May 2014 16:15

I'm about async render..
Region.AjaxReRender();
RenderRegionAsync(Region);
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 05 May 2014 16:22

Ok

But After AjaxReRender it's easy, it's only calling AddJavaScript... after AjaxReRender

Do you mean after but in the process of ajaxrerender itself?

We will take a look at this asap.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 05 May 2014 16:29

cgdevtools_support wrote:But After AjaxReRender it's easy, it's only calling AddJavaScript... after AjaxReRender

I was tried same approach :)
Region.AjaxReRender();
CGAddJavaScriptToAjaxResponse('js code');
But, JS code executes before region is completely rendered :)

cgdevtools_support wrote:Do you mean after but in the process of ajaxrerender itself?

I mean, right after region is completely rendered async.
If CGAddJavaScriptToAjaxResponse will execute JS in correct moment, then there is no need to add any params in ajaxrerender.

All this issue demonstrated in prev. demo, so when you will have time, i hope issue will be clearly viewable in my demo.
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by George » 19 May 2014 09:40

Hi!
What does AAppendToHTMLID in RenderRegionAsync?
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Alexander Bulei » 19 May 2014 12:24

Hi George,

This parameter receives the HTML ID, and generated content will be appended to element with that id.
Basically, it useful in templates, when you need render the dynamically created control into some html element in template.

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 George » 19 May 2014 12:29

Now possible to add regions without re rendering entire parent container, right?
For example:
- Container region
-- region 1
-- region N (each region can be appended without re rendering entire Container region)

If so, then you awesome guys!
It's one of my secret feature request :) That i never posted here.
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 19 May 2014 14:03

Hi

This was always possible
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 19 May 2014 14:16

I didn't know that.
How? Currently, to see "region N" after adding i use Container.AjaxReRender.
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 19 May 2014 14:20

Hi

You just need to call RegionN.AjaxReRender

The lesser controls envolved in .AjaxReRender, lesser the size send to browser.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

PreviousNext

Return to General - Archive

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.