Ext JS

  Home  Client Side Scripting  Ext JS


“Ext JS frequently Asked Questions in various Ext-JS job Interviews by interviewer. The set of questions here ensures that you offer a perfect answer posed to you. So get preparation for your new job hunting”



65 Ext JS Questions And Answers

21⟩ Explain Ext JS UI elements?

The heart of the Ext JS framework is the multitude of rich UI elements provided. These elements include forms, dialog boxes, tabs, trees, and grids.

 183 views

22⟩ Explain how to access Dom element using EXTJS?

The Element API is fundamental to the entire Ext library.

Using traditional Javascript, selecting a DOM node by ID is done like this:

var myDiv = document.getElementById('myDiv');

Using Extjs:

Ext.onReady(function() {

var myDiv = Ext.get('myDiv');

});

 158 views

23⟩ Tell me do you have any advice for developers using Ext for the first time?

Ext can be used by Web Application developers who are familiar with HTML but may have little or no experience with JavaScript application development. If you are starting to build a new web application, or you are revamping an existing application, then take your time to understand the basics of the library including.

 153 views

24⟩ Explain Extjs Ajax implementation?

A typical Ext JS Ajax implementation: an HTML text field and button element that posts data in the text field to a Web server when the button is clicked.

 139 views

26⟩ Explain where Extjs extended from?

Ext JS as a project to extend the functionality that the YUI Library.A key aspect of the YUI Library is the cross-browser support.The Extjs framework is fully object oriented and extensible. Because it's written in the JavaScript language.

 148 views

28⟩ Tell me what is the purpose of Element Object in Extjs?

->Element wraps most of the DOM methods and properties that you'll need, providing a convenient, unified, cross-browser DOM interface (and you can still get direct access to the underlying DOM node when you need it via Element.dom)

->The Element.get() method provides internal caching, so multiple calls to retrieve the same object are incredibly fast

->The most common actions performed on DOM nodes are built into direct, cross-browser Element methods (add/remove CSS classes, add/remove event handlers, positioning, sizing, animation, drag/drop, etc.)

 145 views

29⟩ Explain what is use of Ext.onReady() function?

Ext.onReady is probably the first method that you’ll use on every page. This method is automatically called once the DOM is fully loaded, guaranteeing that any page elements that you may want to reference will be available when the script runs

syntax:

Ext.onReady(function() {

alert(“Congratulations! You have Ext configured correctly!”);

});

 143 views

34⟩ Do you know what is purpose of MessageBox?

MessageBox is asynchronous.

MessageBox call, which demonstrates the readable message to user.

MessageBox used for multiple purpose like

Ext.Msg.alert()

Ext.Msg.prompt()

Ext.Msg.show({});

Ext.Msg.wait();

 151 views

38⟩ Explain 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();

});

 141 views

40⟩ Tell me how to handle event for a extjs component?

a. using listeners config object.

For ex for grid events : listeners: {rowclick: gridRowClickHandler,rowdblclick: gridRowDoubleClickHandler}

b. using addListener( String eventName, Function handler, [Object scope], [Object options] ) : void

Appends an event handler to this component

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

 144 views