ExtJS Interview Questions and Answers
Ques 16. Write syntax for MessageBox show() method?
Ext.MessageBox.show({
title: 'Paragraph Clicked',
msg: 'User clicked on Paragraph',
width:400,
buttons: Ext.MessageBox.OK,
animEl: paragraph
});
Ques 17. What is method to Update the message box body text for MessageBox?
updateText( [String text] ) : Ext.MessageBox
Ques 18. What is a widget?
A widget is a tiny piece or component of functionality.
Ques 19. What is parent class for all stores in extjs? how many stores exists?
Ext.data.Store is parent class for all stores.
A Store object uses its configured implementation of DataProxy to access a data object unless you call loadData directly and pass in your data.
subclasses for Store:
GroupingStore, JsonStore, SimpleStore
Ques 20. How to handle event for a extjs component?
1) Using listeners config object.
For ex for grid events : listeners: {rowclick: gridRowClickHandler,rowdblclick: gridRowDoubleClickHandler}
2) Using addListener( String eventName, Function handler, [Object scope], [Object options] ) : void
Appends an event handler to this component
3) Using on( String eventName, Function handler, [Object scope], [Object options] ) : void
Appends an event handler to this element (shorthand for addListener)
For ex: store.on( "datachanged", function( store ){ ..... });
Most helpful rated by users:
- 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?