CrudOperationBuilderBase error

3 posts, 1 answers
  1. Andy Macourek
    Andy  Macourek avatar
    30 posts
    Member since:
    Mar 2010

    Posted 23 Mar 2014 Link to this post

    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. Answer
    Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 25 Mar 2014 Link to this post

    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.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Andy Macourek
    Andy  Macourek avatar
    30 posts
    Member since:
    Mar 2010

    Posted 29 Mar 2014 in reply to Petur Subev Link to this post

    Thanks.  I found the problem after I posted this.
Back to Top