Thursday, July 2, 2015
How to handle exception while loading datastore?
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();
});
Subscribe to:
Post Comments (Atom)
What is restrict option in directive?
The restrict option in angular directive, is used to specify how a directive will be invoked in your angular app i.e. as an attribute, class...
-
using config option, renderer: fnCellColor where fnCellColor is method to apply color to a cell.
-
Objects have "prototypes" from which they may inherit fields and functions. <script type="text/javascript">...
No comments:
Post a Comment