简体   繁体   中英

Telerik toolbar error

I'm trying to install the editable grid from Telerik. I have this one error:

Error 13
'Telerik.Web.Mvc.UI.Fluent.GridDataKeyBuilder' does not contain a definition for 'ToolBar' and no extension method 'ToolBar' accepting a first argument of type 'Telerik.Web.Mvc.UI.Fluent.GridDataKeyBuilder' could be found (are you missing a using directive or an assembly reference?) c:\\Users\\dmccray11\\Desktop\\TheManhattanProject\\Views\\Home\\PartialSlagView.cshtml 42 10 TheManhattanProject

This is the line of code that renders this error:

.Grid(Model)
.Name("Grid")
.DataKeys(keys => keys.Add(c => c.analysisid)
.ToolBar(commands => commands.Insert().ButtonType(type).ImageHtmlAttributes(new { style = "margin-left:0" })))

Does anyone know what could be the cause of this error?

确保已调整Views目录web.config以包含Telerik程序集。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM