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

$Select command on datasource

2 Answers 20 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Peter Beyer
Top achievements
Rank 1
Peter Beyer asked on 17 Sep 2015, 02:09 PM

Dear Telerik,

We need to be able to set the select command in the database request in order to get only desired data.
We tried to do it by adding a select "data: {$select: 'ProductName, UnitPrice, Discontinued'}", but the response still contains unnecessary data.
You can see the example here: http://dojo.telerik.com/AreTu
We were wandering how can we achieve desired behaviour?

 

See attached picture.

Regards,

 

 

Peter

2 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 21 Sep 2015, 08:44 AM

Hello Peter,

 

the $select parameter is passed as expected to the server as a query string parameter (check the network tab) - however, our endpoint does not process it. I assume that your own implementation may be configured to handle it as per your requirements. 

 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Peter Beyer
Top achievements
Rank 1
answered on 24 Sep 2015, 07:33 AM

Hello Petyo,

Thank you for your replay, it helped us find the solution for our issue.

Regards.

 

 Peter

Tags
Data Source
Asked by
Peter Beyer
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Peter Beyer
Top achievements
Rank 1
Share this question
or