This question is locked. New answers and comments are not allowed.
Hello...
I have my ajax grid bound like this:
| .DataKeys(dk => dk.Add(o=>o.Id)) |
| .DataBinding(db => db.Ajax().Select("_select","myController").Update("_update","myController").blah blah blah |
myControllerController has this:
| [GridAction] |
| public ActionResult _select() |
| { |
| return whateever... |
| } |
| [GridAction] |
| public ActionResult _update(long id) |
| { |
| return whatever.... |
| } |
As you see _update takes the parameter of the entity's key...
I want to change Grid databinding actions to use lambdas... in the _select case is easy:
| .Select<myControllerController>(o=>o._select()) |
but in the _update case, I don't know how to pass the id parameter:
| .Update<myControllerController>(o=>o._update(??????)) |
Can you give me a way to do this? I find the code is much clearer using lambdas, and it allows refactoring within the IDE.