[英]Binding Kendo Grid with mvc
i search the data from by using this subcontractor properties in ActionResult Advacedsearchresult (snapshot is attached) 我通过在ActionResult Advacedsearchresult中使用此分包商属性来搜索数据(附带快照)
I get the 1 result bt unable to show in the grid Please help and suggest me how i use this data in kendo grid or bind the data with kendo grid Thanks 我得到1个结果bt无法在网格中显示请帮助并建议我如何在kendo网格中使用此数据或将数据与kendo网格绑定谢谢 . 。
As mentioned in the comment since you are not passing the parameter to server, it is failing with 500 Internal Error . 如注释中所述,由于您没有将参数传递给服务器,因此它失败并显示500 Internal Error 。 In order to send the parameter from client side you have two ways:- 为了从客户端发送参数,您有两种方法:
1) Either send the parameter as route value in Action
method like this:- 1)可以像下面这样在Action
方法中将参数作为路由值发送:
read.Action("_AdvancedSearchResult", "ContactList", new { cont = 2 }) //Send param
2) You can use the Data
method to send params:- 2)您可以使用Data
方法发送参数:
read.Action("_AdvancedSearchResult", "ContactList").Data("additionalData")
and return the data from JS like this:- 并从JS这样返回数据:-
function additionalData{
return {
cont: 2
};
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.