Welcome Guest Search | Active Topics | Sign In | Register

Hidden Columns in EO.Grid? Options
Greg
Posted: Monday, September 29, 2008 1:37:24 PM
Rank: Newbie
Groups: Member

Joined: 8/3/2008
Posts: 3
Hi there, I'd like to have a column in my grid that is hidden and read only? Not that I'm worried about keeping it secure so nobody can read it, it's just a unique ID that's meaningless and I don't want to confuse the user and clutter the place, is there any way of doing this? Let me know and thanks!
eo_support
Posted: Monday, September 29, 2008 1:59:29 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,095
Hi,

You don't need a hidden column for that. The Grid has a "KeyField" property specifically for that purpose. As long as you set that property, you will then be able to access the key value either on the server side through this property:

http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.GridItem.Key.html

Or on the client side through this property:

http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.GridItem.getKey.html

Hope this helps.

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.