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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -