need2progm
Programmer
I have a check box ....
<asp:checkbox id="chkAll" OnCheckedChanged=ValueChanged() </asp:checkbox>
in script tags a I have..
<script language="javascript">
function ValueChanged()
{
//check all was selected so check all the parents
// selecting the parents will recursivly check/uncheck its children
var grid = igtbl_getGridById(tableName); //get grid
var gridRows = grid.Rows; // returns all the rows in band 0
var checkAllValue = document.getElementByID
('chkAll').Checked;
if(gridRows == null)
{} // No rows so Do NOTHING
else
{
for(i=0;i<gridRows.length;i++)
{
var Row = gridRows.getRow(i);
Row.getCell(0).setValue(value); //set value to chkAll value
}
}
return;
}
I am getting an error 'ValueChanged' is not a member of 'ASP.CreateGrid_ascx'
Does anyone have any suggeations on what I should look at?
Thanks in advance for taking time to help me out!
<asp:checkbox id="chkAll" OnCheckedChanged=ValueChanged() </asp:checkbox>
in script tags a I have..
<script language="javascript">
function ValueChanged()
{
//check all was selected so check all the parents
// selecting the parents will recursivly check/uncheck its children
var grid = igtbl_getGridById(tableName); //get grid
var gridRows = grid.Rows; // returns all the rows in band 0
var checkAllValue = document.getElementByID
('chkAll').Checked;
if(gridRows == null)
{} // No rows so Do NOTHING
else
{
for(i=0;i<gridRows.length;i++)
{
var Row = gridRows.getRow(i);
Row.getCell(0).setValue(value); //set value to chkAll value
}
}
return;
}
I am getting an error 'ValueChanged' is not a member of 'ASP.CreateGrid_ascx'
Does anyone have any suggeations on what I should look at?
Thanks in advance for taking time to help me out!