Related differences

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
});

Is it helpful? Add Comment View Comments
 

Ques 17. What is method to Update the message box body text for MessageBox?

updateText( [String text] ) : Ext.MessageBox

Is it helpful? Add Comment View Comments
 

Ques 18. What is a widget?

A widget is a tiny piece or component of functionality.

Is it helpful? Add Comment View Comments
 

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

Is it helpful? Add Comment View Comments
 

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 ){ ..... });

Is it helpful? Add Comment View Comments
 

Most helpful rated by users: