我正在嘗試從Telerik安裝可編輯的網格。我有這樣一個錯誤:Telerik工具欄錯誤
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
這是代碼呈現此錯誤的行:
.Grid(Model)
.Name("Grid")
.DataKeys(keys => keys.Add(c => c.analysisid)
.ToolBar(commands => commands.Insert().ButtonType(type).ImageHtmlAttributes(new { style = "margin-left:0" })))
有誰知道這可能是此錯誤的原因?
任何解決方案?我有同樣的問題 – CMS 2016-07-17 21:35:51