[英]I am using kendo Grid and when I press Update I get this error:TypeError: r is undefined
[英]getting error when my kendo grid has group by and I am trying to search the element
嗨,場景就像我在我的劍道網格中進行了分組,之后如果嘗試搜索網格的 Id(int) 它會拋出一個錯誤,而且我的網格是服務器端。 當我嘗試從 controller 返回列表時出現錯誤
return isGrouping? Json(lstofToolAction.ToDataSourceResult(request), JsonRequestBehavior.AllowGet): Json(new { Data = lstofToolAction, Total = total }, JsonRequestBehavior.AllowGet);
這是錯誤
Provided expression should have string type\r\nParameter name: stringExpression filter
條件中缺少比較運算符,請檢查你的三元運算符,看看下面的例子
isGrouping =true ? Json(lstofToolAction.ToDataSourceResult(request), JsonRequestBehavior.AllowGet) : Json(new { Data = lstofToolAction, Total = total }, JsonRequestBehavior.AllowGet);
檢查另一個例子
int first=1,second=2,result=2; result = 1? first: second;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.