Rank: Member Groups: Member
Joined: 7/12/2008 Posts: 19
|
I would like to hide columns within an a Grid depending on a drop down selection using javascript. I can get the grid using var grid=document.getElementById('<%=Grid1.ClientID%>'), but I do not know where to go from there. What d I need to do to access a specific column using javascript?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi, You can't use getElementById to get the Grid object. The Grid is not a DHTML element. You will have to use our client side API to access the Grid: http://www.essentialobjects.com/doc/1/clientapi_howto.aspxOnce you familiar yourself with the client side API, you will need to call this method to hide the column: http://www.essentialobjects.com/doc/1/jsdoc.public.gridcolumn.setvisible.aspxThanks
|