i attempting implement kendo grid through telerik ui mvc in asp.net core mvc web app. trying use template column lambda expression following error, relating @< text >
expression:
cannot convert lambda expression type 'string' because not delegate type
if start brand new project using telerik templates , paste in following code, asp.net 4.5 app run fine, asp.net core return error.
@(html.kendo().grid<dynamic>() .name("something") .columns(columns => { columns.bound("columnname"); columns.template(@<text></text>).title("lambdacolumn"); @* error on line *@ }) )
i believe problem change new entityframework. how can lambda expression function correctly entityframeworkcore?
what bound columns.template(@<text></text>).title("lambdacolumn"); @* error on line *@
columns.bound(yourlambda).template(@<text></text>).title("lambdacomlumn");
??
looking @ entirely related previous line, can't string value name of binding, has lambda.
//snip
.columns(columns => { columns.bound(c => c.lastname).title("lastname"); columns.template(@<text></text>).title("lambdacolumn"); @* error on line *@ })
//c column, pneumonic in nature c related type used in creating grid. @(html.kendo().grid<customer>())
//endsnip
also don't know how dynamic work grid.. pretty sure in experimentation , use of radgrid been rock solid , never seen other concrete types being used in grids implementation or documentation
Comments
Post a Comment