Go Back   SmartClient Forums > Smart GWT Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 28th Mar 2011, 11:21
smartgwtuser smartgwtuser is offline
Registered Developer
 
Join Date: Apr 2009
Posts: 37
Default How to override listgrid ConfirmDiscardEdits popup save and cancel buttons

Hi,
I have a list grid with Mass update functionality.How can I override the ConfirmDiscardEdits popup/window in the listgrid. Please le me know how can I do this.


Thanks
Reply With Quote
  #2  
Old 27th Jun 2011, 12:12
cirovladimir cirovladimir is offline
Registered Developer
 
Join Date: May 2009
Posts: 54
Default

I think you can setConfirmDiscardEdits to false and then watch on filter/sort changes on the grid. Then check hasChanges() and call saveAllEdits() or discardAllEdits() appropriately.
Reply With Quote
  #3  
Old 29th Jun 2011, 04:49
swetan swetan is offline
Registered Developer
 
Join Date: Oct 2010
Posts: 21
Default

I would also like to override ConfirmDiscardEdits popup/window so that the user can see only 'OK' and 'Cancel' buttons and not the 'Save' button. I set setConfirmDiscardEdits to false, but could not find any handler which would actually stop calling the fetch operation on the data source until the user confirms to sort/filter or to cancel those operations.

Could you please let me know how we could watch on filter/sort changes on the grid and do the appropriate operation?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble Saving ListGrid Data locally superman859 Smart GWT Technical Q&A 5 15th Sep 2011 11:49
Issue with dialog to cancel, save, or discard edits in ListGrid senordhuff Technical Q&A 14 13th Dec 2006 09:42

© 2010,2011 Isomorphic Software. All Rights Reserved