Hello,
I have a listgrid with canRemoveRecords set to true. I need to execute a function after a record is removed. So i tried to override the removeData function. Something like this:
As you see, i have to call update_label_menu() and grid.invalidaCache(). Unfortunately, they are called before removeData finishes.
I know that the second argument for removeData is a callback, but i am not sure how can i modify arguments var to add this callback.
Any ideas of how can i do this?
Thanks!
I have a listgrid with canRemoveRecords set to true. I need to execute a function after a record is removed. So i tried to override the removeData function. Something like this:
Code:
removeData: function( data ) { this.Super( 'removeData' , arguments ); update_label_menu(); grid.invalidateCache(); }
I know that the second argument for removeData is a callback, but i am not sure how can i modify arguments var to add this callback.
Any ideas of how can i do this?
Thanks!