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.
Unfortunately, activation email could not send to your email. Please try again.

Data binding approaches: Local data vs Remote data locally

Thread ID:

Created:

Updated:

Platform:

Replies:

123542 Mar 28,2016 12:42 PM Mar 29,2016 09:24 AM ASP.NET MVC 1
loading
Tags: AutoComplete
Dmytro Kuzmin
Asked On March 28, 2016 12:42 PM

Hello,

there are two data binding approaches in the autocomplete control:

1) Local data: Pass all data immediately in Controller (ViewBag approach). 
2) Remote data: Dynamically get data based on query from external source (which in this case is a local JsonResult method)    

Is there any significant difference in performance and maintainability between those approaches?
I think, that if there is just a few data entries, than the first approach is definitely better. 
But what if we have a huge amount of data entries? How big it should be, so that second approach would become better? 

Regards,
Dmytro


Kasithangam C [Syncfusion]
Replied On March 29, 2016 09:24 AM

Hi Dmytro,

Thanks for using Syncfusion Products.

Query1: Is there any significant difference in performance and maintainability between those approaches?

Based on the loading time and amount of data, we can maintain the performance of autocomplete.Please find the below table for loading time of autocomplete data via local data and remote data.

LocalData
RemoteData
In this local data we can provide extensive databinding support to populate autocomplete items







We can bind the data for the Autocomplete from any server that is located as a remote web service. By using query options, you can pass the query string to filter the data that helps to avoid rendering the excessive data.





While passing data via local it fetch the result from local and process in javascript.
While using remote data, it automatically fetch the data from server and load in autocomplete.Based on the fetch result,the loading time of data is difference.





Query 2: what if we have a huge amount of data entries? How big it should be, so that second approach would become better? 

To load the large amount of data in autocompelete and the best approach is loadondemand option.While typing char in autocomplete, then you can load the large amount of data in the autocomplete.We have prepared the sample based on this and please find the sample from the following location:

Sample: Sample

In this above sample, we have generated the data in codebehind and bind it to the autocomplete datasource.

Please let us know if you have further query.

Regards,

Kasithangam


CONFIRMATION

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.

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.

;