Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, July 6, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Datagrid refresh
NagaratnaPandi
Posts: 111
 
Datagrid refreshYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jun 09 8:54 AM
Hi,
I am trying to customize a quick form.
It contains a button and datagrid.
I want to refresh the datagrid records when ever i click the button.
How to do this.
[Reply][Quote]
John Paul Welther
Posts: 27
 
Re: Datagrid refreshYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Jun 09 9:36 AM
there is a datagrid.refresh
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Datagrid refreshYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Jun 09 10:53 AM
For the web client, there are a couple of ways to refresh a page:

- Reload it via a Redirect (sounds strange, but works as it reloads the page).
- use the PanelRefresherService and do a RefreshAll

Best if combined both as shown below:

Sage.Platform.WebPortal.Services.IPanelRefreshService refresher = PageWorkItem.Services.Get();
if (refresher != null) {
refresher.RefreshAll();
}
else
{
Response.Redirect(Request.Url.ToString());
}
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Datagrid refreshYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Jun 09 11:50 AM
Quote:
Originally posted by John Paul Welther

there is a datagrid.refresh


No applicable to web.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Datagrid refreshYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Jun 09 12:25 PM
In addition to what Raul said, you can also do this my modifying the collection that the grid is bound to. For example, if I have a grid of Widgets under an Account and I am programatically adding a Widget, I can cause the grid to refresh by adding the newly created Widget to the Account's Widget collection.

Example:
IWidget widget = EntityFactory.Create<IWidget>();
widget.Property = "Something";
widget.Save();
// new widget is saved at this point

//get a reference to parent entity
IAccount account = this.BindingSource.Current as IAccount;

//this will cause a grid bound to Account.Widgets to refresh
account.Widgets.Add(widget);


-Ryan
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 7/6/2025 9:42:25 AM