We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataManager and WebAPI

Thread ID:





123389 Mar 14,2016 01:26 AM UTC Mar 15,2016 05:12 AM UTC JavaScript 3
Tags: ejDataManager
Asked On March 14, 2016 01:26 AM UTC

Hi, I am using Angular and MVC 6, and am confused about the DataManager queries.
I have added the DataManager to the ejAutoComplete text box with the following settings (in TypeScript, but nothing complicated)
var dataManager = new ej.DataManager({
                url: "api/Example/Get",
                adaptor: new ej.UrlAdaptor()
            this.acOptions = {
                dataSource: dataManager,
                fields: {
                    text: "contactName"
When I start typing I get a query string like $select=contactName&$filter=startswith(tolower(contactName),%27per%20100%27)&$orderby=contactName
So my questions are:
What is this?
Where do I find the documentation on what the DataManager could possibly send to my Controller?
Is there a standard way to parse this query string so I know what to return back?

Jayaprakash Kamaraj [Syncfusion]
Replied On March 14, 2016 10:14 AM UTC

Hi Quinn,
In DataManager we have used odataQueryoptions for perform server side operations(paging/filtering/sorting..etc) in webApiAdaptor . So, we have generated url with proper odata url conventions in client side to perform server side operation in Grid. Please refer to the below documentation.
Documentation for odataQueryoptions: http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/supporting-odata-query-options
Documentation for url conventions OData V3 : http://www.odata.org/documentation/odata-version-3-0/url-conventions/
Documentation for url conventions OData V4: http://docs.oasis-open.org/odata/new-in-odata/v4.0/cn01/new-in-odata-v4.0-cn01.html#_Toc366145448
Jayaprakash K.

Replied On March 14, 2016 09:45 PM UTC

Hi Jayaprakash,
Thanks for the info.

Jayaprakash Kamaraj [Syncfusion]
Replied On March 15, 2016 05:12 AM UTC

Hi Quinn, 

We are happy that the provided suggestion helped you. 

Please get back to us if you need any further assistance.  


Jayaprakash K.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon