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

Passing additional data to the action method (Ajax binding)

0 Answers 258 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 15 Jun 2012, 09:57 AM
I can't get this up and running, get the compilation error:
 
'Kendo.Mvc.UI.Fluent.AjaxDataSourceBuilder<Core.Country>' does not contain a definition for 'Data' and no extension method 'Data' accepting a first argument of type 'Kendo.Mvc.UI.Fluent.AjaxDataSourceBuilder<Core.Country>' could be found (are you missing a using directive or an assembly reference?)

I'm using :

@using Kendo.Mvc.UI
@
using Kendo.Mvc.Extensions

 

 
@model Core.Country[]

Can someone tell me, am I  missing a using directive or an assembly reference?

Many thanks in advance.



Sorted: The extension method 'Data' is on .Read(...) not the datasource as the documentation on Ajax Binding: "Pass Additional Data to Action Method" would have you believe.

K.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Kevin
Top achievements
Rank 1
Share this question
or