Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, July 3, 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: * unsaved data and popup when sorting datagrid
Tony Joanes
Posts: 71
 
* unsaved data and popup when sorting datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Nov 09 8:24 AM
Hi

I have a gridview on a dialog page which I want to be able to sort. I have made my own filters and this filters the grid okay, the problem comes when I want to sort the grid.

When I click on the header to sort the field I get the popup about unsaved work and have to click ok or cancel. I am not binding any fields to data and this a read only form so I am not saving anything, how do I stop this message coming up?

Thanks
[Reply][Quote]
Tony Joanes
Posts: 71
 
Re: * unsaved data and popup when sorting datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Nov 09 8:26 AM
I have just noticed that as soon as I click on my button to filter the form the "* unsaved data" text appears on the detail view. The filters are from dropdown lists so it is obviously noting the change of state in these.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: * unsaved data and popup when sorting datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Nov 09 2:15 PM
Try registering your controls to avoid causing the Dirty Data Warning Message:

e.g.: Your button is called cmdFilter
ClientBindingMgr.RegisterBoundControl(cmdFilter);


[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: * unsaved data and popup when sorting datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Nov 09 1:45 AM
You can also do the following using the ClientBindingManagerService:

From server-side code
ClientBindingMgr.CurrentEntityIsDirty = false;


From client-side Javascript
var mgr = Sage.Services.getService("ClientBindingManagerService");
if (mgr)
mgr.clearDirtyStatus();


-Ryan
[Reply][Quote]
Tony Joanes
Posts: 71
 
Re: * unsaved data and popup when sorting datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Nov 09 5:11 AM
I still can't seem to stop this message from occuring

I tried using the CurrentEntityIsDirty = false and the registering of controls.

Is it becuse its a dialog that opens from the accountdetails page?

I even get the message when I page through the gridview.
[Reply][Quote]
Tony Joanes
Posts: 71
 
Re: * unsaved data and popup when sorting datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Nov 09 5:18 AM
Note: The message I get when paging is the browser popup:

"Are you sure you want to navigate away from this page?
You have unsaved data. If you continue you will lose the changes you have made.

etc ...
[Reply][Quote]
Tony Joanes
Posts: 71
 
Re: * unsaved data and popup when sorting datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Nov 09 5:19 AM
Note: The message I get when paging is the browser popup:

"Are you sure you want to navigate away from this page?
You have unsaved data. If you continue you will lose the changes you have made.

etc ...
[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/3/2025 12:16:08 AM