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

get selected rows data on client and server side

4 Answers 443 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 09 Jan 2013, 11:24 AM
Hello again,
I'm trying to use the multiple selection feature,how can i get the selected rows data also on client side,and on server side(using an action)?

Many thanks again,

4 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 11 Jan 2013, 02:55 PM
Hello Daniel,

 We just created a code library which shows how to do both. You can check it here: Grid Selection

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Daniel
Top achievements
Rank 1
answered on 14 Jan 2013, 08:03 AM
i checked the example that you sent me,it works,that's what i want it.So the key to do the selection is the grid.selection method made in javascript.
Thank you for your time and the project example.
0
Daniel
Top achievements
Rank 1
answered on 13 Feb 2013, 11:43 AM
Hello,
i still have a question.Without that javascript code for selection of the id's, is there other way to send the selected row(as view model),or at least that modelID?
for example if i have set on the grid .Model(model => model.Id(p => p.ProductID))

get it with a post or get in the controller,something like this

[HttpPost]/[HttpGet]
public GetRow(int productID,ProductRowViewModel model){

...
var row=_repository.GetByID(productID);
......

}

Regards,
 Daniel
0
Accepted
Atanas Korchev
Telerik team
answered on 14 Feb 2013, 09:46 AM
Hello Daniel,

 No, there is no way without JavaScript. 

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or