Getting data passing an object as parameter

3 posts, 0 answers
  1. Michele
    Michele avatar
    426 posts
    Member since:
    Jun 2009

    Posted 22 Oct 2015 Link to this post


    I've been asked to migrate an existing KendoUI grid to Kendo UI pivot grid....  before I was doing 


    .DataSource(dataSource => dataSource
          .Read(action => action.Action("LoadOperations", "InquiryOperations").Data("getData"))

    How can I do this with pivot since the Transport helper doesn't support Data?


    .DataSource(dataSource => dataSource
            .Transport(transport => transport.Read("LoadOperations", "InquiryOperations").Data("getData")))


  2. Rosen
    Rosen avatar
    3253 posts

    Posted 26 Oct 2015 Link to this post

    Hello Paolo,


    You could do the same as with the Grid's DataSource when Ajax DataSource is used. However, the snippet you are using the not correct. The Data configuration is part of the Read setting, but in the pasted snippet it is misplaced. It should be, similar to the following:

    .DataSource(dataSource => dataSource
            .Transport(transport => transport.Read(read => read.Action("LoadOperations", "InquiryOperations").Data("getData")))



    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Mahesh
    Mahesh avatar
    2 posts
    Member since:
    Dec 2013

    Posted 19 May 2016 Link to this post

    this helped. was having difficulty in finding this solution.
Back to Top