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

Detect checked checkboxes (in templateColumn)

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Soren Michelsen
Top achievements
Rank 1
Soren Michelsen asked on 28 Sep 2009, 04:25 PM
I have a grid with a number of databound columns.

I have added a templateColumn to my grid. The column contains a checkBox (chkReport). In my grid, I check this checkbox to indicate that a given row should be included in a report that I generate when subsequently clicking a "Build Report" button.

Question(s):
1. What is the best way of having such a column? Should it even be a template column?
2. Checked items must be "persisted" when I move back and forth using the grid's paging functionality. How?
3. How do I best detect the checked rows' primary keys (key column name is simply "id") when I am ready to build my report?

Any help appreciated,
Jeppe Jespersen
Denmark

1 Answer, 1 is accepted

Sort by
0
Soren Michelsen
Top achievements
Rank 1
answered on 28 Sep 2009, 08:55 PM
Got it.

For anyone interested, I found everything I needed in this article and other articles in the same "how-to" branch of the help site:

http://www.telerik.com/help/aspnet-ajax/grdpersistselectedrowsonsorting.html

Thanks to me for helping me on this one :-)

Jeppe Jespersen
Denmark




Tags
Grid
Asked by
Soren Michelsen
Top achievements
Rank 1
Answers by
Soren Michelsen
Top achievements
Rank 1
Share this question
or