Questions tagged [extjs4.1]

The April 2012 release of the popular JavaScript framework Ext JS. Warning: please use this tag along with the generic extjs tag. Otherwise your question will not be seen by the many thousands following extjs.

The April 2012 release of the popular JavaScript framework Ext JS.

Please also tag your question with the base tag , since many Ext JS experts only follow the base tag.

See for more information.

Useful links

1793 questions
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
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
26
votes
2 answers

up() and down() versus Ext.getCmp()

I'm very confused which one I need to use for grep object between up() down() and Ext.getCmp(ID). For me, it is easier that define ID to object and retrieve the object by Ext.getCmp('ID') and the code looks more clean. For…
Expert wanna be
  • 10,218
  • 26
  • 105
  • 158
20
votes
2 answers

ExtJS: What's the point of requires?

I've been trying to figure out what requires does in Ext JS 4, and I can't seem to come up with a reasonable answer. Let's say I have the following code: app.js Ext.Loader.setConfig({ enabled: true }); Ext.Loader.setPath('Ext.ux',…
incutonez
  • 3,241
  • 9
  • 43
  • 92
19
votes
2 answers

ExtJs: Form isValid() is false. But how to know why the form is invalid?

I am using an ExtJs form having a file upload field in it. On selecting a file I am calling the submit() method of the form. But before submitting I am checking if the form is valid or not using form.isValid(). Now due to some unknown reasons, I am…
DarkKnightFan
  • 1,913
  • 14
  • 42
  • 61
19
votes
2 answers

extjs 4.1 When do I use a proxy on a store and when on a model?

There are two ways to use proxies in extjs 4.1 (server proxies in my case), one can tie it to a model or tie it on a store. I am a bit confused about the usage: What is the difference between tieing a proxy to a store, and tieing it to a model? What…
mahatmanich
  • 10,791
  • 5
  • 63
  • 82
17
votes
5 answers

Extjs - How to show combobox in Grid column

I have a gridpanel include date and combo column jsfiddle But I don't want click to show my combo. I want show my combo without click, not hide inside cell like and the same for date column like I think chage to clicksToEdit: 0 but…
DeLe
  • 2,442
  • 19
  • 88
  • 133
17
votes
3 answers

ExtJs grid.Panel store: keep scrollbar position after load/reload

I'm using grid.Panel in Sencha ExtJs 4.0.2a and I reload a Json Store every 60 seconds. I was wondering if there is a way to preserve the position of the scrollbar after a data load. So that the user can continue to look at the records he was…
zerologiko
  • 1,993
  • 1
  • 18
  • 21
17
votes
9 answers

Ext.button click() method

ExtJS 4.1. Is there something like Ext.button.click(); method on Ext.button class? Is it possible to programmically "click" a button with one method?
s.webbandit
  • 16,332
  • 16
  • 58
  • 82
15
votes
2 answers

How to change combobox store data in ExtJS 4.1

I define a combobox like this { xtype: 'combobox', emptyText: 'Functions' store: [ 'none' ] } then, on some event the store should load new data, so I get the store from the combobox and try this: oFunctionStore.loadData( ['dothis',…
K..
  • 4,044
  • 6
  • 40
  • 85
14
votes
4 answers

How to align elements in a toolbar to left, middle, right

How can I have the three regions left, middle, right within a toolbar? I know that I can use -> to trigger the right aligned container for all following items but what about center?
seba
  • 974
  • 2
  • 10
  • 30
13
votes
4 answers

How to close modal window extjs when clicking on mask?

If I create a modal window: Ext.define('myWindow', { extend: 'Ext.Container', alias: 'widget.myWindow', floating: true, modal: true, listeners: 'onMaskClick???': { close the window } ..... } How do I know when a user…
johnstoecker
  • 248
  • 1
  • 2
  • 7
13
votes
4 answers

Adding header to Ajax request

How can I add a request header to an ExtJS ajax request? I specifically want to add the header: accept-encoding to equal true.
Robo
  • 261
  • 2
  • 5
  • 13
12
votes
4 answers

ExtJS 4.1 - Returning Associated Data in Model.Save() Response

I am curious as to why the record contained in the result set of a Model.save() response does not properly return updated associated data, despite the updated data being contained in the server response... Example Model & Store…
John Hall
  • 1,346
  • 13
  • 27
12
votes
6 answers

Extjs - Get rowIndex of a selected row

I have been seleted a row, and now i want get rowIndex maybe like grid.getSelectionModel().getSelection()[0].rowIndex but it's undefined. How can i get it thanks
DeLe
  • 2,442
  • 19
  • 88
  • 133
1
2 3
99 100