Welcome Guest Search | Active Topics | Sign In | Register

Hiding Grid Columns Client Side Options
abrea
Posted: Monday, July 16, 2012 2:09:18 PM
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?
eo_support
Posted: Tuesday, July 17, 2012 12:04:44 PM
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.aspx

Once 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.aspx

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.