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

Getting data passing an object as parameter

2 Answers 181 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 22 Oct 2015, 09:08 AM

Hello,

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

 

.DataSource(dataSource => dataSource
      .Ajax()
      .ServerOperation(false)
      .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
        .Ajax()
        .Transport(transport => transport.Read("LoadOperations", "InquiryOperations").Data("getData")))

Thanks

2 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 26 Oct 2015, 11:29 AM

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
        .Ajax()
        .Transport(transport => transport.Read(read => read.Action("LoadOperations", "InquiryOperations").Data("getData")))

 

Regards,

Rosen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Mahesh
Top achievements
Rank 1
answered on 19 May 2016, 07:31 PM
this helped. was having difficulty in finding this solution.
Tags
PivotGrid
Asked by
Michele
Top achievements
Rank 2
Answers by
Rosen
Telerik team
Mahesh
Top achievements
Rank 1
Share this question
or