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

[Solved] where to specify the edit action?

1 Answer 94 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.
Andrew
Top achievements
Rank 1
Andrew asked on 13 Jul 2011, 11:21 AM

I used a custom edit template and ajax databinding, but can't get the Model in the template, Is there a Edit action passing model to the custom edit template needed?

in the view i defined a grid

.DataBinding(dataBinding =>
    {
        dataBinding.Ajax()
            .Select("Select", "Order")
            .Insert("Insert", "Order")
               //.Edit("Edit", "Order")
            .Update("Update", "Order")
            .Delete("Delete", "Order");
    })

now how can i get the model in the custom edit template
@model Models.Order
...
...
@Ajax.ActionLink("aaa", "bbb", "Order", new { param = Model.xxx })

1 Answer, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 1
answered on 18 Jul 2011, 11:37 AM
need help!
Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Andrew
Top achievements
Rank 1
Share this question
or