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
9
votes
1 answer

ExtJS 4.1 Infinite Grid Scrolling doesnt work with Dynamic store using loadData

I have to load first grid panel on tab and then load data into store using loadData() function which is working fine, but now I have to integrate infinite grid scrolling with it. Is there any way to integrate infinite scrolling on fly after loadData…
Keyur Vaghani
  • 206
  • 3
  • 8
9
votes
7 answers

Error when using form.submit()

We are using extjs and webapi(C#) for our application. My form has a fileupload control. When we use form.sumbit() in extjs, it is not going to the success function. WebApi code: bool SaveData(Employee obj) { return true; } Extjs…
user339160
9
votes
2 answers

Extend from custom model class in ExtJS 4

How to extend from custom model in extjs. Is there any method which can directly club the fields of User and BusinessUser fields when I'll refer the fields from BusinessUser class in example below. Ext.define('User', { extend:…
Nas
  • 887
  • 1
  • 11
  • 21
9
votes
5 answers

Is there Global variables in EXT JS

In java and C++ we could store a variable globally and access its value from any where in the project. Say, i am inside a class called Residence and i am saving the residenceNumber which is a INT to a global variable called…
Sharon Watinsan
  • 9,620
  • 31
  • 96
  • 140
8
votes
1 answer

Sorting a column in a ExtJS TreePanel changes order of records of the nodes not just leafs

I have managed to implement a treepanel and everything seems to be working. I have data like so ( see below). My fields I "name" which holds below things like "ItemA", "ProductA" which are nodes and the "Iron" which is a leaf and a property called…
Martin
  • 23,844
  • 55
  • 201
  • 327
8
votes
2 answers

Extjs 4.1 Combo - How to make select function fire When call combo.setValue

I have a combo like items: { xtype: 'combo', id: 'combo', queryMode: 'local', displayField: 'name', valueField: 'id', store:…
DeLe
  • 2,442
  • 19
  • 88
  • 133
8
votes
4 answers

extjs 4 - How change default message error in field

I have a form panel in http://jsfiddle.net/7CLWy/ here is my important code items: [{ xtype: 'textfield', fieldLabel: 'First Name', allowBlank: false, msgTarget: 'under', name: 'firstName' }, { xtype: 'datefield', …
LookAtMeNow
  • 261
  • 1
  • 5
  • 15
8
votes
1 answer

Extjs Treepanel: CSS to change default icons (node and leaf)

I have a tree panel like http://jsfiddle.net/bmbMy/ I try to change default icons (node and leaf) by using css. But that not working. .x-grid-row .x-grid-tree-node-expanded { background:…
DeLe
  • 2,442
  • 19
  • 88
  • 133
8
votes
2 answers

ExtJS: Destroy window with config 'closeAction' set to 'hide'

I have a window with closeAction configured to 'hide' on instantiation: var myWin = Ext.create('Ext.window.Window', { ... closeAction:'hide', ... }); Calling close() on myWin therefore simply hides the window. I need to destroy the…
Joseph Victor Zammit
  • 14,760
  • 10
  • 76
  • 102
8
votes
1 answer

How to align field inputtext right?

How can I align the Text within all fields to right instead of left? I looked throught the API but found only a property for the label. Edit I know that I can change it by CSS but I am looking for a way to do it with a config option. ...still…
seba
  • 974
  • 2
  • 10
  • 30
8
votes
5 answers

How to put X inside textfield to clear text in extjs

I want to implement an X button inside a textfield (x on right side of textfield) to clear entered texts. I have seen many extjs application that has this feature. How do I go about doing that? Any suggestion or comments would be really…
EagleFox
  • 1,367
  • 10
  • 34
  • 58
8
votes
4 answers

ExtJs - Get element by div class?

How do I get the ExtJs component object of a Div by class name? Say my div is:
How do I get the ExtJs object of this Div to perform e.g. getWidth() Note: There is no id given. What I…
Shlomo
  • 3,880
  • 8
  • 50
  • 82
8
votes
2 answers

Ext 4.1.1: Add new record to Store

I would like to add records after the initialization of a store. I tried loadData(), loadRawData(), add() but nothing seams to work. Here is my jsfiddle: http://jsfiddle.net/charlesbourasseau/zVvLc Any ideas ?
Charles
  • 11,367
  • 10
  • 77
  • 114
8
votes
3 answers

How to prevent firing single click event when double clicked in extjs

I have a tree panel and for each node i have single click and double click events. but when i double click it is firing the single click event also. so how to prevent firing single click event when double clicked?
Jom
  • 1,877
  • 5
  • 29
  • 46
7
votes
2 answers

How to get value of other column in renderer function in Extjs?

I want to get the value of another column in the same row, in a renderer function of one column. I tried a method, but it didn't work. And here's my code: columns: [ {id:'id',header: 'ID', width: 30, sortable: true, dataIndex:…
Mingrui Ji
  • 399
  • 2
  • 6
  • 11