grid as a local variable in snipplet
Hello,
I want to modify the two-grid example for display each grid on demand of the user (ie when clicks on a button) in a alternate manner (hidding one of them when the other is visible).
In order to do this i need to declare locally the Active grid object, populate it and desttroy it every time the user fires the click event of the button.
Can you show me how to do it? I'm getting troubles with the in-line functions to attach events because in the example the two grids are global variables to the html page.
Thank you.
I want to modify the two-grid example for display each grid on demand of the user (ie when clicks on a button) in a alternate manner (hidding one of them when the other is visible).
In order to do this i need to declare locally the Active grid object, populate it and desttroy it every time the user fires the click event of the button.
Can you show me how to do it? I'm getting troubles with the in-line functions to attach events because in the example the two grids are global variables to the html page.
Thank you.
sdgian
April 28,