|
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
|
|
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!
|
|
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
|
|
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.aspxYou can handle the checkbox's click event and then call the above function to highlight whatever cell you wish to highlight. Thanks!
|
|