{"Items":[{"nodeId":"1","nodeText":"Home","url":"/home"},{"nodeId":"2","nodeText":"Athletes","url":"/athlets"}],"Count":1}
// if you are binding(dataext) like this then it considered as remote data
var dataext = new ej.data.DataManager({
url: '/api/Orders/',
adaptor: new ej.data.WebApiAdaptor()
}) |
<script>
var datamanager;
var dataext = new ej.data.DataManager({
url: '/api/Orders/',
adaptor: new ej.data.WebApiAdaptor()
}).executeQuery(new ej.data.Query()).then((e) => {
datamanager = e.result; // if you bind datamanager for component then it considered as local data and its done the actions such as sort etc., in client side.
console.log(datamanager)
});
</script> |
<script>
var datamanager;
var dataext = new ej.data.DataManager({
url: '/api/Orders/',
adaptor: new ej.data.WebApiAdaptor()
}).executeQuery(new ej.data.Query()).then((e) => {
datamanager = e.result; // if you bind datamanager for component then it considered as local data and its done the actions such as sort etc., in client side.
console.log(datamanager)
});
</script>
// you can bind datamanager(it contain the JSON result) to the component |