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

Offline mode is not working in XML data adaptor

Dear Team

I have attached sample application to test it in your side.  If i enable Offline then I am getting below error in chrome

ej.web.all.min.js:10 Uncaught TypeError: n.dataSource.json.slice is not a function
    at i.processQuery (ej.web.all.min.js:10)
    at t.DataManager.executeLocal (ej.web.all.min.js:10)
    at Object._ensureDataSource (ej.web.all.min.js:10)
    at Object._processBindings (ej.web.all.min.js:10)
    at Object.refreshContent (ej.web.all.min.js:10)
    at Object._refreshDataSource (ej.web.all.min.js:10)
    at Object._setModel (ej.web.all.min.js:10)
    at Object.setModel (ej.web.all.min.js:10)
    at m.fn.init.n.fn.<computed> [as ejGrid] (ej.web.all.min.js:10)
    at Object.btnLogin_Click (Login.htm:92)


Suresh V

Attachment: TestSyncFusion_73283a67.zip

1 Reply

MP Manivannan Padmanaban Syncfusion Team May 20, 2019 08:26 AM UTC

Hi Suresh, 

Thanks for contacting Syncfusion Support. We are happy to assist you. 

Query:  If i enable Offline then I am getting below error in chrome 

We are able to reproduce the reported issue in the shared. The reported issue will occur because you have return the data as result and count instead of json data. To avoid the issue, we suggest you to use the below modified code example, 

<script type="text/javascript"> 


function processXML(ele) 
        var json = ConvertToJSON(ele); 
        return json["EmpList_ForBrowse"]; // return the json data here. 



Refer the below link for modified code sample, 

Also, refer the below link for knowledge base help documentation. 

Manivannan Padmanaban. 

Live Chat Icon For mobile
Up arrow icon