This is a migrated thread and some comments may be shown as answers.

Kendo Grid + Web API + Search + JSON

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mark baer
Top achievements
Rank 1
mark baer asked on 18 Mar 2014, 09:50 PM
I am trying to find samples on how to do this.  I can bind a kendo grid with JSON and regular MVC, but I am trying to using the CLIENT side controls with Web API.  I'm not sure how to CORRECTLY setup the Web API Method to handle a search string(Put method?) and what to return(Prefer JSON).  Any sample code out there?  Most of the samples I see are not passing parameters to Web API.  If they are, it is for a "Get"(Singular)...I need it for a "Search" method...Send some search text, get back JSON results bound to the Kendo Grid.

Thanks mucho.

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 21 Mar 2014, 06:45 AM
Hi Mark,

Basically this is an WebApi controller restriction - in current case I would suggest to create a ViewModel which to contain both the Grid model and the additional properties that you need to send. 

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
mark baer
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or