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
132
votes
5 answers

Explain ExtJS 4 event handling

I've recently started learning ExtJS, and have trouble understanding how to handle Events. I have no experience of any previous versions of ExtJS. From reading various manuals, guides and documentation pages, I've figured out how to use it, but I'm…
jrharshath
  • 25,975
  • 33
  • 97
  • 127
45
votes
4 answers

to initComponent() or not to initComponent()

I struggle when building an app in ExtJS 4, and part of that is confusion on when to configure something in initComponent() and when not to... For example, in Sencha's own MVC Application Architecture doc, when first creating the grid view, they…
romacafe
  • 3,098
  • 2
  • 23
  • 27
39
votes
4 answers

How to display binary data as image - extjs 4

Here is the binary for a valid .JPEG image. http://pastebin.ca/raw/2314500 I have tried to use Python to save this binary data into an image. How can I convert this data to a viewable .JPEG image with extjs 4? I tried this, but it doesn't…
user2040602
36
votes
9 answers

ExtJS 4.x: How to disable "dirty record" red corner in Ext.grid.Panel cells?

I have an Ext.grid.Panel (aka gridpanel) with a store, used only for client-side visual effects (i.e., nothing gets saved to the server). When I create new model instances and add them to the store they are shown in the grid with a red corner…
clint
  • 14,402
  • 12
  • 70
  • 79
34
votes
4 answers

Telerik KendoUI vs Sencha ExtJS?

We are going to build a enterprise grade application on Web and for that we have filtered down our choices to ExtJS and KendoUI. Both are decent and have rich features / controls, KendoUI is faster in performance than ExtJS but then ExtJS is like…
deej
  • 2,536
  • 4
  • 29
  • 51
33
votes
7 answers

How to compare null value from the JsonObject in java

stackoverflow member i need some help from you. I am having a JsonObject given below { "Id": null, "Name": "New Task", "StartDate": "2010-03-05T00:00:00", "EndDate": "2010-03-06T00:00:00", "Duration": 1, "DurationUnit": "d", "PercentDone":…
yaryan997
  • 483
  • 3
  • 10
  • 18
33
votes
10 answers

How to create custom ExtJS form field component?

I want to create custom ExtJS form field components using other ExtJS components in it (e.g. TreePanel). How can I do it most easily? I've read docs of Ext.form.field.Base but I don't want to define field body by fieldSubTpl. I just want to write…
pcjuzer
  • 2,724
  • 4
  • 25
  • 34
33
votes
3 answers

Best practice for overriding classes / properties in ExtJS?

I have an Ext.form.field.Text and I want to override the setValue function. What is the recommended way to override this class functionality in ExtJS? Ext.override?
A1rPun
  • 16,287
  • 7
  • 57
  • 90
31
votes
9 answers

Extjs 4 combobox default value

I'm migrating my application from ExtJs 3 to 4 version. I have several comboboxes at my formPanel, and previously I've used hiddenName and all that stuff to submit valueField instead of displayField. All my adaptation works fine (value field IS…
BlackLine
  • 363
  • 1
  • 4
  • 10
29
votes
8 answers

Set listener for store events in a controller

I have a controller with a store, a model, and some views. I need to listen for the beforesync and write event of the store in the controller, but I don't know how to set these listeners in the controllers control-function. My store looks like this…
Demnogonis
  • 3,172
  • 5
  • 31
  • 45
29
votes
3 answers

Dynamic Model with ExtJS 4

With ExtJS 3.x, I was able to use the "fields" property of a Store, but it seems with ExtJS 4 I have to absolutely use a Model. It's fine, but in my case, it's not a static Model, and I need to define the fields on the fly and sometimes to change…
TigrouMeow
  • 1,038
  • 4
  • 19
  • 30
27
votes
8 answers

Making ExtJS 4 grid content selectable

Grids in ExtJS 4 (Sencha) don’t allow to select content by default. But I want to make this possible. I've tried this grid config: viewConfig: { disableSelection: true, stripeRows: false, getRowClass: function(record, rowIndex,…
Barry
  • 375
  • 1
  • 4
  • 7
27
votes
3 answers

Javascript how to show each element of array on a new line

I have a string build form comma separated values I use split to get each value and after that I want to show each value on a new line but what really happens is that I get each value on a new line except of the last two which are shown together on…
Leron
  • 9,546
  • 35
  • 156
  • 257
26
votes
3 answers

EXTJS 4 - Global exception listener

I have a situation where I am making ajax requests to a server from various Ext gridpanel etc. In an Admin area. The logged in user will be logged out if there is no activity for eg. 5 minutes which is normal. In this case the server sends back a…
user798612
  • 327
  • 2
  • 4
  • 5
26
votes
4 answers

ExtJS 4 Change grid store on the fly

Is it posible to change grid's store in ExtJS 4? For example, i have two models: User = Ext.define('User',{ extend: 'Ext.data.Model', [...], hasMany: 'Product' }); Product = Ext.define('Product',{ extend: 'Ext.data.Model', [...] }); and…
sunsay
  • 1,500
  • 2
  • 21
  • 28
1
2 3
99 100