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

[Solved] Access selected row in controller

0 Answers 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kishore
Top achievements
Rank 1
Kishore asked on 05 Sep 2011, 12:59 PM
How can i access selected row in controller or suggest the better approach for my requirement i.e. I have 2 or more grids, i need selected row(id column from each grid) for all the grids, i need to submit the form with these selected values.

I tried below way
.RowAction(row => row.Selected = row.DataItem.RegistrationProfileId.Equals(Model.SelectedProfileId)) for some reason selectedProfileId is 0 all the time. is there any way to store and persist this value

Attached the screen shot of my page

1. The 2nd grid is the partial view or user control because it has some external filtering functionality
2. I used server side selection to maintain the selection between the postbacks(for above filtering)

so basically i need to submit the selected values to the controller action.
Tags
Grid
Asked by
Kishore
Top achievements
Rank 1
Share this question
or