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!
|
|
* unsaved data and popup when sorting datagrid
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 |
|
|
|
Re: * unsaved data and popup when sorting datagrid
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. |
|
|
| |
|
Re: * unsaved data and popup when sorting datagrid
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 |
|
|
|
Re: * unsaved data and popup when sorting datagrid
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. |
|
|
|
Re: * unsaved data and popup when sorting datagrid
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 ... |
|
|
|
Re: * unsaved data and popup when sorting datagrid
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 ... |
|
|
|