Welcome Guest Search | Active Topics | Sign In | Register

How to add check box on Grid header Options
WS
Posted: Tuesday, March 8, 2011 2:52:15 PM
Rank: Advanced Member
Groups: Member

Joined: 2/27/2011
Posts: 37
Hi

Is there any way we can add a check box on Grid header? if yes, please tell me how to add?

Thanks
William


eo_support
Posted: Tuesday, March 8, 2011 4:02:44 PM
Rank: Administration
Groups: Administration

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

The Grid does not have such feature built-in. However you can put anything raw HTML inside the GridColumns' HeaderText property, so you can render a checkbox that way. For example, if you set the column's HeaderText to:

Code: HTML/ASPX
<input type="checkbox" />


You will see a checkbox on the Grid column header. Note you will need to write your own code to set/get value or handle event from that checkbox. It has nothing to do with the Grid.

Thanks!
WS
Posted: Tuesday, March 8, 2011 7:44:40 PM
Rank: Advanced Member
Groups: Member

Joined: 2/27/2011
Posts: 37
Hi,

Thank you for your reply!

What I want is to have a feature on Grid when tick on CheckBox Column then highlight the whole row, also when tick on one CheckBox on header then highlight all rows on current page, I am wondering whether EO.Web.Grid can achieve that?
how can I achieve it if EO.Web.Grid does not support?

Thanks
William




eo_support
Posted: Wednesday, March 9, 2011 8:58:21 AM
Rank: Administration
Groups: Administration

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

You can call this function to highlight any Grid cell:

http://doc.essentialobjects.com/library/1/jsdoc.public.gridcell.overridestyle.aspx

You can handle the checkbox's click event and then call the above function to highlight whatever cell you wish to highlight.

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.