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

CrudOperationBuilderBase error

2 Answers 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andy Macourek
Top achievements
Rank 1
Andy Macourek asked on 23 Mar 2014, 09:09 PM
I am trying to add a data parameter to a grid read:

.Read(read => read.Action("NotesRead", "Server").Data(ViewBag.ServerId))

I have the controller as:

public ActionResult NotesRead([DataSourceRequest]DataSourceRequest request, string ServerId)

it is throwing the following error:

The call is ambiguous between the following methods or properties: 'Kendo.Mvc.UI.Fluent.CrudOperationBuilderBase<Kendo.Mvc.UI.Fluent.CrudOperationBuilder>.Data(System.Func<object,object>)' and 'Kendo.Mvc.UI.Fluent.CrudOperationBuilderBase<Kendo.Mvc.UI.Fluent.CrudOperationBuilder>.Data(string)'

2 Answers, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 25 Mar 2014, 01:21 PM
Hello Andy,

The fluent builder transport operation Data method is used to give the name of a JavaScript function which result will be send as additional data to the server. 

The same is covered in the FAQ here:

http://docs.telerik.com/kendo-ui/getting-started/using-kendo-with/aspnet-mvc/helpers/grid/faq#how-do-i-send-values-to-my-action-method-when-binding-the-grid?

Kind Regards,
Petur Subev
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Andy Macourek
Top achievements
Rank 1
answered on 29 Mar 2014, 02:12 PM
Thanks.  I found the problem after I posted this.
Tags
Grid
Asked by
Andy Macourek
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Andy Macourek
Top achievements
Rank 1
Share this question
or