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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Offline mode is not working in XML data adaptor

Thread ID:

Created:

Updated:

Platform:

Replies:

144681 May 17,2019 08:53 AM UTC May 20,2019 08:26 AM UTC jQuery 1
loading
Tags: ejDataManager
suresh
Asked On May 17, 2019 08:53 AM UTC

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)

Regards

Suresh V

Attachment: TestSyncFusion_73283a67.zip

Manivannan Padmanaban [Syncfusion]
Replied On 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. 
      } 


…………. 

</script> 

Refer the below link for modified code sample, 

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

Regards, 
Manivannan Padmanaban. 



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.

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