Page 1 of 1

Can I Hide a grid?

Posted: Tue Mar 29, 2011 5:19 pm
by leatherlips
I'm trying to find a way to mimic client side "filtering" and thought I'd try filling 3 different grids with data (one with all data, the other two filtered by different criteria).
I'm now trying to see if I can "hide" the one grid, and make another visible using javascript. I may not be doing this right, but here's what I thought I could use:
A=getObj("Grid1"); A.visibility="hidden";
this is from the onclick of a button for now for testing purposes.

Can I do this? If so, what am I doing wrong ?

THANKS!

Re: Can I Hide a grid?

Posted: Wed Mar 30, 2011 10:03 am
by Alex
You can use the following code to hide a grid:
getObj("Grid1").grid.hide()

And the following to show it again:
getObj("Grid1").grid.show()