Hi,
I have a databound radgrid and I need to get and set the value of a checkbox column client side.
I'm using the following for the other columns, which I have adapted from code found on this site.
var myMasterTable = Grid.get_masterTableView();
var myCell = myMasterTable.getCellByColumnUniqueName(myMasterTable.get_dataItems()[myRowIndex - 1], ColumnName);
var myCellValue = myCell.innerHTML;
if (myCellValue == " ") { myCellValue = ""; }
return myCellValue;
But unlike the other columns it returnsthe below html and not the actual value?
"<span class="aspNetDisabled"><input id="grid_Properties_ctl00_ctl04_ctl50" type="checkbox" name="grid_Properties$ctl00$ctl04$ctl50" checked="checked" disabled="disabled"></span>"
How do I get the checked state and also set the checked state via javascript? Is their abuilt in method for this?
Thanks in advance