Questions tagged [extjs4]

Please use this tag in relation to ExtJS 4.0 - 4.2; Ext JS 4 is the fourth major version of the JavaScript library for building Rich Internet Applications (RIA), and now includes an MVC architecture without the need to use plugins. Sencha has already released ExtJS 4.1 which has some significant changes compared to the last stable 4.0.7 release.

Ext JS 4 is a major advancement in JavaScript framework. With expanded functionality, faster performance, and improved efficiency, you can create incredible web apps for every browser. The framework has become the final release since April 26th 2011.

Note: Sencha has already released ExtJs 4.1 which has some rather significant changes comparing to last stable 4.0.7 release. Please use this tag in relation to ExtJs 4.0.7.

There is extjs4.1 tag for questions related to ExtJs 4.1 release.

Links for Starters:

See for more information.

5584 questions
11
votes
3 answers

ExtJs 4, How to prevent xtype: 'combo' from collapsing when already selected item clicked?

I have ComboBox. When I click on item from expanded list, ComboBox select this item and collapse. If I click on already selected item it also collapsing. Is there a way to "stop" ComboBox collapsing when user select already selected item? PS: to be…
obenjiro
  • 3,665
  • 7
  • 44
  • 82
11
votes
1 answer

Extjs: Force a component to re-render

I have a custom component in ExtJs that is a form field (GridField). It displays a grid as a form field and works as expected. The observations are as follows: When the form is rendered alone (eg. in a window or the first panel in a card layout,…
ritcoder
  • 3,274
  • 10
  • 42
  • 62
11
votes
5 answers

ExtJS debugging "[E] Layout run failed" (in a custom component)

I have developed a custom kind of combo box that uses a grid instead of the standard combo picker (mainly to benefit from buffered rendering with huge data sets). I am now trying to make it compatible with Ext 4.2.1 but I ran into this error: [E]…
rixo
  • 23,815
  • 4
  • 63
  • 68
11
votes
3 answers

Extjs 4.2: How to send parameters properly in a Ext.Ajax.Request POST

I have to do a POST from my ExtJs script in order to delete something from my DB: Ext.Ajax.request({ url: 'deleteRole.html', method: 'POST', headers: {'Content-Type': 'text/html'}, waitTitle: 'Connecting', waitMsg:…
mannuk
  • 1,259
  • 5
  • 21
  • 43
11
votes
2 answers

Always show the tip text of Slider in Extjs

In Extjs 4.1.1a, How to keep the tip text of the slider always visible? Currently, the tip text is being visible whenever the user drags the bar of the slider. I searched on docs but couldn't find any related concepts. If it is not documented or not…
Mr_Green
  • 40,727
  • 45
  • 159
  • 271
11
votes
2 answers

Getting the active element within ExtJS?

Im trying to get the component that is active/focused at a given time. I already know that you can get a HTMLElement with the cross-browser javascript function document.activeElement. How can I cast this element to a Ext.Component or does ExtJs have…
A1rPun
  • 16,287
  • 7
  • 57
  • 90
11
votes
7 answers

how to find column index using dataIndex Extjs 4

Well in ExtJS 3 i used the following code: grid.getColumnModel().findColumnIndex("Tasks") I tried finding it on the api docs, but no luck...so how is ir possible that i can find the column index of the grid by the dataIndex of the column or the…
Hmxa Mughal
  • 394
  • 1
  • 4
  • 17
11
votes
2 answers

ExtJs TextField with small button

How to create small button with icon inside textfield, like with datefield? In previous version of ExtJS there was a CompositeField but cant find it in ExtJS 4.
patryks
  • 650
  • 2
  • 15
  • 32
11
votes
8 answers

Process after grid was loaded completely using ExtJS

I am using ExtJS to load data to a grid, and I want to add some additional processes after data was put on grid completely. My context is, after data was put on grid, I will check all rows, and mark some of them as disabled based on a specified…
Đinh Hồng Châu
  • 5,300
  • 15
  • 53
  • 90
10
votes
1 answer

Where is the Ext JS 4 ux package

I'm learning ExtJS 4 and I just figured out how to center containers/panels. In order to do this I needed to add the following at the top of my my app.js Ext.Loader.setPath('Ext.ux', 'extjs/examples/ux'); Ext.require('Ext.ux.layout.Center'); The ux…
Adam Langsner
  • 1,276
  • 1
  • 15
  • 23
10
votes
6 answers

Symfony2: Echoing JSON From a Controller for Use in an ExtJS 4 Grid

I'm just getting started with Symfony2 and I'm trying to figure out what the correct approach is for echoing out JSON from a controller (e.g., People) for use in an ExtJS 4 grid. When I was doing everything using a vanilla MVC approach, my…
Levi Hackwith
  • 9,232
  • 18
  • 64
  • 115
10
votes
2 answers

EXTJS 4 render HTML of a selected value in a combobox

Hello I have the next problem, I want to render the html of my display value in a combobox, at the moment I load a store with the html ready, it renders the html when I show all of them, but when I select one, it show the html. What can I do to…
Javier Sanchez
  • 336
  • 2
  • 8
  • 18
10
votes
3 answers

What is meant by the 'flex' property of any ExtJS4 layout?

I have seen examples where some number is specified against flex, like say {text: 'Actual', xtype : 'gridcolumn', dataIndex: 'some_data', flex: 1} What is conveyed by this property? The documentation specified is a little difficult to understand,…
Unos
  • 1,293
  • 2
  • 14
  • 35
10
votes
2 answers

Loading hasMany data in ExtJS

I'm trying to load 'nested' data in a hasMany relation in ExtJS4. My model looks like this: Ext.define("Entrypage.model.Entrypage",{ extend: "Ext.data.Model", fields: ['id','title','urlkey','text','picture','keywords',…
Bart Vangeneugden
  • 3,436
  • 4
  • 33
  • 52
10
votes
2 answers

Extjs4 - remote validation

I'd like having a remote validator for a textfield. My PHP returns true/false value. I've tried something like this: { xtype: 'textfield', fieldLabel: 'Field', allowBlank: false, validator : function(value) { Ext.Ajax.request({ …
gotroch
  • 105
  • 2
  • 7