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

How do I create a client template from the code-behind?

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin J
Top achievements
Rank 1
Kevin J asked on 24 Jul 2008, 08:15 PM
I can't seem to figure this out. 

  I have a Grid with a GridCheckBoxColumn.  It is bound to a Boolean field in a table.

  I've enabled the checkbox in the ItemDataBound event.

  The Grid has paging turned on. 

  When a user selects a checkbox, and moves to the next page.  How do I get the values from the row that was checked? 

  I tried using the ItemEvent event and went so far as to iterate through all the items, but it only tells me the original status of the checkbox field.  It doesn't tell me that the user changed a checkbox.

  How do I find this?  I've been reading tons of documentation, but I can't seem to find what I'm after.






Thanks
Kevin

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 25 Jul 2008, 05:07 AM
Hi Kevin J,

Generally if you go to a different page before click on update button - edited item cannot be updated. Possible solution can be if you check (in ItemCommand) if you have EditIndexes and update edited items explicitly.

Greetings,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Kevin J
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or