Hi Everybody,
I am using Rad controls for asp.net ajax version (DLL Version : 2008.3.1314.35)
I have created a grid with checkbox column.
i want to check the checkbox using javascript, using rowid and column unique name.
i am trying to do that in a user defined javascript function, lets say i have an array of row id and another with column unique name.
for instance i want to do like the below code block.
function UDFCheckboxChecker()
{
var a="1,2,3,4,5";
var arrayRowid= a.split(',');
var b="java,c++,c#,asp,php"
var arrayColumnUniqueName=b.split(',')
var grid =//get the grid.
//loop through each element in the array arrayRowid
for(var i=0;i<arrayRowid.length;i++)
{
var rowretreived =//get the radgrid row with row id arrayRowid[i]
var cell = get the cell with uniquename arrayColumnUniqueName[i] from the grid using rowretreived
cell checked=true or false. // check or uncheck the retreived cell(checkbox column)
}
}
I know how to do this is itemdatabound or using a boolean datatype and bind the data,
My requirement is to loop the grid rows in client side and get the checkboxcolumn in specific columns and check/uncheck it,
like what i have explained in the above code skeleton.
is it possible to do so?
any one please give me a solution.
Thank You,
I am using Rad controls for asp.net ajax version (DLL Version : 2008.3.1314.35)
I have created a grid with checkbox column.
i want to check the checkbox using javascript, using rowid and column unique name.
i am trying to do that in a user defined javascript function, lets say i have an array of row id and another with column unique name.
for instance i want to do like the below code block.
function UDFCheckboxChecker()
{
var a="1,2,3,4,5";
var arrayRowid= a.split(',');
var b="java,c++,c#,asp,php"
var arrayColumnUniqueName=b.split(',')
var grid =//get the grid.
//loop through each element in the array arrayRowid
for(var i=0;i<arrayRowid.length;i++)
{
var rowretreived =//get the radgrid row with row id arrayRowid[i]
var cell = get the cell with uniquename arrayColumnUniqueName[i] from the grid using rowretreived
cell checked=true or false. // check or uncheck the retreived cell(checkbox column)
}
}
I know how to do this is itemdatabound or using a boolean datatype and bind the data,
My requirement is to loop the grid rows in client side and get the checkboxcolumn in specific columns and check/uncheck it,
like what i have explained in the above code skeleton.
is it possible to do so?
any one please give me a solution.
Thank You,