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

How to fetch GridTemplateColumn checkbox value using client API

2 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
nikila
Top achievements
Rank 1
nikila asked on 15 Dec 2008, 10:53 AM

We have a RADGrid that has 3 GridTemplateColumns
(which is have checkbox controls within them).Using client API We want to fetch the values of column 3 checkboxes to find if any checkbox is checked.This javascript should run when a button outside the grid in the page is clicked.
We are unable to fetch the value of the checkbox using the following code.

var masterTable = $find("<%=RadGrid1.ClientID%>").get_masterTableView();

var col = masterTable.get_columns()[2];

alert(col.get_uniqueName());

We are able to get the unique name but are unable to fetch the value of the check box.

We tried using Cell [0].value which is not working.


Please let us know your suggestion.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Dec 2008, 01:06 PM
Hello Nikila,

You can go through the following code library submission to understand how to access a control on the client side.
Accessing server controls in a grid template on the client

Thanks
Princy.
0
nikila
Top achievements
Rank 1
answered on 16 Dec 2008, 11:28 AM
Thanks.
Tags
Grid
Asked by
nikila
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
nikila
Top achievements
Rank 1
Share this question
or