MvcContrib Grid with Razor -
i have intersting question. i'm going use razor in asp.net mvc site. need create grid column render action. how can it?
here code:
@{ html.grid(model).columns(column => { column.for(x => x.deviceid).named("action").action(data => { @* place here? *@ }); } }
i cannot close code block '}' because close body of inline expression:
column.for(x => x.deviceid).named("action").action(data => {} @* place here? *@ @{}
so, possible solve problem?
solved. can use this: column.for(x => html.partial("mygridbuttons", x)).named("action");
Comments
Post a Comment