get selected rows data on client and server side

5 posts, 1 answers
  1. Daniel
    Daniel avatar
    192 posts
    Member since:
    Mar 2012

    Posted 09 Jan 2013 Link to this post

    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,
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 11 Jan 2013 Link to this post

    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!
  3. Daniel
    Daniel avatar
    192 posts
    Member since:
    Mar 2012

    Posted 14 Jan 2013 Link to this post

    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.
  4. Daniel
    Daniel avatar
    192 posts
    Member since:
    Mar 2012

    Posted 13 Feb 2013 Link to this post

    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
  5. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 14 Feb 2013 Link to this post

    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!
Back to Top