This is a migrated thread and some comments may be shown as answers.

Rad grid dynamic check box grid

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Anto (DLL Version : 2008.3.1314.35) asked on 27 Apr 2012, 04:48 PM
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,

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 30 Apr 2012, 09:36 AM
Hello Anto,

Please try with link.

http://jayeshgoyani.blogspot.in/2011/11/access-radgrids-control-on-client.html

let me know its working or not with your telerik version.


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or