| | |
checkbox in grid control
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
ASP.NET Syntax (Toggle Plain Text)
chkh.Attributes.Add("onclick", "javascript:return SelectAll(this,'"+ dglist.ClientID +"');"); //dglist is gridview function SelectAll(id,dg) { var grid = $get(dg); var cell; var txt; if (grid.rows.length > 0) { //loop starts from 1. rows[0] points to the header. for (i=1; i<grid.rows.length; i++) { var inputs = grid.getElementsByTagName("input"); if (inputs.length>0) { //loop starts from 1. rows[0] points to the header. for (i=1; i<inputs.length; i++) //if childNode type is CheckBox { if(inputs[i].type=="checkbox") { var chk=$get(inputs[i].id); if(id.checked == true) { chk.checked=true; } else { chk.checked=false; } } } } } } }
If u r query is achieved,mark the thread as solved
Live and Let Live
Live and Let Live
![]() |
Similar Threads
- How to create Check Box Controls list in Repeater/Datalist/Listview ?? (ASP.NET)
- CheckBox Cell in DataGridView (C#)
- Hi guys please clear my doubt. (ASP.NET)
- Checkbox (ASP.NET)
- select check boxes (ASP.NET)
- Creating an event or an action to a button. (PHP)
- How will I Capture this Dynamic Data (ASP.NET)
- No internet due to Spyware (Viruses, Spyware and other Nasties)
- Adding a checkbox column dynamically (C#)
Other Threads in the ASP.NET Forum
- Previous Thread: scrolling Items in datalist or some control.
- Next Thread: ASP.Net
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 activexcontrol advice ajax alltypeofvideos anathor asp asp.net bc30451 bottomasp.net browser button c# c#gridviewcolumn checkbox child click commonfunctions compatible confirmationcodegeneration content contenttype courier css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdown dropdownlist edit expose feedback flash flv form formatdecimal forms formview google grid gridview homeedition hosting iframe iis javascript jquery list listbox login microsoft mono mouse mssql multistepregistration news numerical objects panelmasterpagebuttoncontrols project radio ratings refer richtextbox rotatepage save schoolproject search security serializesmo.table silverlight smartcard sql-server sqlserver2005 suse textbox tracking typeof unauthorized validation vb.net video videos view virtualdirectory vista visual-studio visualstudio web webarchitecture webdevelopemnt webservice xml youareanotmemberofthedebuggerusers





