View Full Version : (live.editorgridpanle ) how to save data when use page turn or scroll next load

26 Mar 2010, 1:54 PM
if user change the data ,but not save when it scroll down to next page( or next re-load data from server) it will be remove all data and load new data.
but i would like add new event to listener before reload event. if store data have changed then will be pope confirm msgbox windows. same store. before load event.

there have some beforerefresh event to live.editorgrid ?


26 Mar 2010, 2:02 PM
i found out if bbar have button the can add toggleHandler function to handler it.
but now i use GridView scoll

i try to add event to view

var mview = new Ext.ux.grid.livegrid.GridView({
nearLimit: 100,
loadMask: {
msg : 'Please wait...'
listeners: {
beforerefresh: function(v) {
//v.scrollTop = v.scroller.dom.scrollTop;
refresh: function(v) {
//v.scroller.dom.scrollTop = v.scrollTop;

but it does'n work,
any advice