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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to map data from DataManager using UrlAdpator in ListView

Thread ID:





146517 Aug 6,2019 09:49 PM UTC Aug 7,2019 09:49 AM UTC ASP.NET Core - EJ 2 1
Tags: ListView
Peng Xie
Asked On August 6, 2019 09:49 PM UTC

From the document, UrlAdaptor is required to process data from DataManager that sends requests to server-side. I replicated my intent in attachment. To summarize, I am using Listview. The dataSource is DataManager() object that query from server. As explained from document, an UrlAdaptor is needed to map return data.

The Server Side controller is:

I followed this:

I tried the way it was suggest, but my ListView could not map response data. However, it could not map the view.

Also, I wonder that whether I could add extra helpful information from server-side response for debugging purpose.
Such as:

How do I parse out those extra properties from JSON object. So I could render it into my page.


Attachment: Razorpages461008119_55049a5d.zip

Vinoth Kumar Sundara Moorthy [Syncfusion]
Replied On August 7, 2019 09:49 AM UTC

Hi Peng, 
Good day to you. 
We have checked your query and prepared a sample with data with format mentioned in documentation. We use the query property for getting data from server. In query property we have used requiresCount method to parse result data from server and applied to ListView component. 
The query should be used as like in the below code snippet, 
query: new ej.data.Query().requiresCount() 
Sample Data format 
    "result": [{ 
        "Name": "sample1", 
        "Id": "Id1" 
    }, { 
        "Name": "sample2", 
        "Id": "Id2" 
    }, { 
        "Name": "sample3", 
        "Id": "Id3" 
    }, { 
        "Name": "sample4", 
        "Id": "Id4" 
        "count": "2", 
        "message": "Success", 
We have prepared a sample for required sample data (contains result and count) and the same can be downloaded from below link, 
Could you please check the above sample and get back to us if you need any further assistance on this? 
Vinoth Kumar S 


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

Live Chat Icon For mobile
Live Chat Icon