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

[Solved] How to pass the current row as a parameter when using AjaxBinding?

1 Answer 118 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.
Miguel Angel
Top achievements
Rank 1
Miguel Angel asked on 15 Jun 2011, 11:28 AM
Hello I have the following doubt and the Telerik documentation is not very clear about how to pass parameters when using the Select/Insert/Update

Right now my problem is that when I Insert a row I cannot use the TryUpdateModel since I'm updating the grid in a collection that is part of the model but not the whole model, so it is failing, so I want to have the collection and the current row sent as parameters, for the collection is quite easy, I just have to do this:

dataBinding.Ajax()
    .Select("PermGridSelect", "Security", new { permissions = Model.Permissions })
    .Insert("PermGridInsert", "Security", new { permissions = Model.Permissions })
    .Update("PermGridSave", "Security", new { permissions = Model.Permissions })
    .Delete("PermGridDel", "Security", new { permissions = Model.Permissions });
But I still cannot find a way to send the current row that was being edited.

1 Answer, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 1
answered on 15 Jul 2011, 08:41 AM
want to know this too.
Tags
Grid
Asked by
Miguel Angel
Top achievements
Rank 1
Answers by
Andrew
Top achievements
Rank 1
Share this question
or