Ext-JS Question:

Explain how to handle exception while loading datastore?

Tweet Share WhatsApp

Answer:

using loadexception event.
syntax: store.loadexception() : Fires if an exception occurs in the Proxy during loading.
use beforeload : ( Store this, Object options ) : Fires before a request is made for a new data object. If the beforeload handler returns false the load action will be canceled.
syntax:
store.on('loadexception', function(event, options, response, error) {
alert("Handling the error");
event.stopEvent();
});

Download Ext JS PDF Read All 65 Ext JS Questions
Previous QuestionNext Question
Explain how to find no of records in a store?Explain how to handle updates for store changes?