This repository was archived by the owner on Jul 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathremote-data.html
More file actions
37 lines (30 loc) · 1.88 KB
/
remote-data.html
File metadata and controls
37 lines (30 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<div class="col-lg-12 control-section">
<!-- ListView element -->
<div id="listview" tabindex="1"></div>
</div>
<div id="action-description">
<p>This sample demonstrates the Remote-data functionalities of the ListView. Click any list item to select and highlight an item.</p>
</div>
<div id="description">
<p>ListView supports <b>data binding</b> and the <code>dataSource</code> property can be assigned with the instance of <code>DataManager</code> to bind remote the data.</p>
<p>The <code>DataManager</code> that act as an interface between the service endpoint, and ListView will require the following minimal information to interact with the service endpoint properly.</p>
<p>DataManager->url - Defines the service endpoint to fetch data.</p>
<p>DataManager->adaptor - Defines the adaptor option. By default, ODataAdaptor is used for remote binding.</p>
<p>Adaptor is responsible for processing response and request from/to the service endpoint. <code>@syncfusion/ej2-data</code> package provides some predefined adaptors that are designed to interact with the particular service endpoints. They are,</p>
<ul>
<li>UrlAdaptor - Use this to interact any remote services. This is the base adaptor for all remote based adaptors.</li>
<li>ODataAdaptor - Use this to interact with OData endpoints.</li>
<li>ODataV4Adaptor - Use this to interact with OData V4 endpoints.</li>
<li>WebApiAdaptor - Use this to interact with Web API created under OData standards.</li>
<li>WebMethodAdaptor - Use this to interact with web methods.</li>
</ul>
<p>In this sample, the remote data is bound to be a collection of <b>Products</b> data as an instance of <code>DataManager</code>.</p>
</div>
<style>
#listview {
max-width: 500px;
margin: auto;
border: 1px solid #dddddd;
border-radius: 3px;
}
</style>