Welcome Guest Search | Active Topics | Sign In | Register

Checkbox on a Grid Column Header Options
Ellery Gomez
Posted: Thursday, November 26, 2009 6:01:52 PM
Rank: Member
Groups: Member

Joined: 8/4/2009
Posts: 16
Hi all, i already saw the example of how to check / uncheck all rows on a client side using java script, but is there a way to do this via VB on the server side? And how can I put a check box to perform this on the column header?

Thanks in advance
Best Regards
eo_support
Posted: Friday, November 27, 2009 7:57:35 AM
Rank: Administration
Groups: Administration

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

To do it on the server side, you simply set the Grid cell's value to true or false. It will be something like "Grid1.Items[y].Cells[x].Value = true/false".

To put a checkbox on the column header, you will need to set the header's HeaderText property to raw HTML that includes a checkbox button (for example, <input type="checkbox" name="col1_checkbox" />), you would then check your Request.Form[checkbox_name] to see if the checkbox is checked.

Thanks!
Ellery Gomez
Posted: Monday, November 30, 2009 6:22:06 PM
Rank: Member
Groups: Member

Joined: 8/4/2009
Posts: 16
Thank you that's really works.


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.