CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Ajax Update Panel

Print topic Send  topic

Author Message
feha


Posts: 712
Posted: 04/06/2008, 3:29 AM

I wonder if there is a way if used more components (forms ) on same page can one UpdatePanel triger another one to update or "refresh" at same time?
_________________
Regards
feha

www.vision.to
feedpixel.com
View profile  Send private message
RonB

Posts: 228
Posted: 04/07/2008, 5:14 AM

You can use one update panel for several forms So why would you want to?

Ron
View profile  Send private message
feha


Posts: 712
Posted: 04/08/2008, 5:47 AM

Hi Ron
Thank You.

I do have a problem as forms and grids are on includable pages.


_________________
Regards
feha

www.vision.to
feedpixel.com
View profile  Send private message
CCT


Posts: 44
Posted: 04/10/2008, 10:56 AM

Hi, Feha.

This is possible by binding refresh start point of second panel to "onrefresh" event of the first one.

Say you have two update panels: Panel1 and Panel2 and you want to refresh Panel2 after Panel1 is refreshed. You should open "Refresh" property of the Panel1 "UpdatePanel" feature and in appearing dialog point it to "onrefresh" event of "UpdatePanel" feature of Panel1. The only problem here may be that Panel2 should be initialized prior to Panel1 in that case (otherwise it won't be found on the very first refresh), but it's often not the case.

That means that

  
function bind_events() {  
    Panel1_start(window);  
    Panel2_start(window);  
}

should be modified to


  
function bind_events() {  
   Panel2_start(window);  
   Panel1_start(window);  
 }

Alternatively

  
function Panel2UpdatePanel_refresh(sender) {  
    AjaxPanel.reload($("Panel2"));  
}

can be modified to check if $("Panel2") is already initialized (just check it's location property).

In case of Panels on includable pages everything would be the same, just id's will also include page name (you'll have to input it manually as "refresh" dialog won't allow you to go to includable pages.

Best regards,
Frank.
_________________
Get more CodeCharge Studio builders at http://codechargetools.com
View profile  Send private message
feha


Posts: 712
Posted: 04/10/2008, 11:07 AM

Hello Frank

Thank you very much.
This will help me a lot. :-)
_________________
Regards
feha

www.vision.to
feedpixel.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.