ExtJS 面接の質問と回答
質問 21. How to find no of records in a store?
Using
store.getTotalCount() : Gets the total number of records in the dataset as returned by the server.
質問 22. 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();
});
質問 23. How to handle updates for store changes?
Use store.commitChanges()
質問 24. What is the purpose of each() in store?
Calls the specified function for each of the Records in the cache
each( Function fn, [records Object] )
質問 25. How to get modified records using store object?
store.getModifiedRecords() : Gets all records modified since the last commit.
ユーザー評価で最も役立つ内容:
- Why did you choose Ext JS?
- Why do we need javascript Library?
- What is syntax for Extjs Button click event?
- How to access DOM element using EXTJS?
- Integration of Web development server-side frameworks with Ext JS?