简体   繁体   中英

Binding Kendo Grid with mvc

i search the data from by using this subcontractor properties in ActionResult Advacedsearchresult (snapshot is attached)

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 在此处输入图片说明 . 在此处输入图片说明 在此处输入图片说明

As mentioned in the comment since you are not passing the parameter to server, it is failing with 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:-

read.Action("_AdvancedSearchResult", "ContactList", new { cont = 2 }) //Send param

2) You can use the Data method to send params:-

read.Action("_AdvancedSearchResult", "ContactList").Data("additionalData")

and return the data from JS like this:-

function additionalData{
   return {
       cont: 2
    };
}

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