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
7
votes
4 answers

Sencha: How to trigger click event on li element

I've been unable to figure out how to manually fire DOM events. Here, for example, is my attempt to fire the "click" event for a li Ext.DomQuery.select('#mapRoutesPanel ol li:nth-child('+(index+1)+')')[0].click(); It's working fine on google…
user1812198
  • 121
  • 1
  • 4
7
votes
1 answer

EXTJS Store load callback issue

I load my store as follows: store.load({ params: { paramMap }, callback: function(records, options, success) { if (success) { var form = formPanel.getForm(); var jsonStr =…
b3labs
  • 960
  • 1
  • 14
  • 29
7
votes
2 answers

Update method bug in extjs

In my extjs project, I have some panel's to which I am showing toolbar on mouseEnter event. This is working fine. But when I just update the panel with new html then the mouseenter event is not working on it. panel.update('hello'); Then I realised…
Mr_Green
  • 40,727
  • 45
  • 159
  • 271
7
votes
2 answers

How to set html to a element in extjs

1) How to set HTML to already created panel or any other Element? I am a beginner. I tried the below to set some content inside the HTML var clickedElement = Ext.getCmp('id').el.child('>'); clickedElement.setHTML("hello"); The above is working…
Mr_Green
  • 40,727
  • 45
  • 159
  • 271
7
votes
4 answers

In ExtJS components how to forward config: {} items to sub components

I am trying to write a reusable item selection panel where the user has a grid with items he can choose from and a small text field that he can use to filter the content of the grid. Right now the (simplified) view code looks like this and…
ErosC
  • 453
  • 1
  • 4
  • 11
7
votes
2 answers

How to override refresh action in PagingToolbar

I need to write some action based on the refresh button in the Paging toolbar. How can I override the doRefresh() method? this.bbar=Ext.create('Ext.PagingToolbar', { store: store, displayInfo: true, displayMsg: 'Displaying records…
Zakaria Imtiaz
  • 539
  • 5
  • 17
7
votes
2 answers

Best way to access adjacent components / fields

I am looking for a way to access components / field that are either in the same items array as the accessing one or even only in a same parent items array (the last one is just a option). In ExtJS3 this was easy by simply defining a ref in the…
sra
  • 23,820
  • 7
  • 55
  • 89
7
votes
2 answers

ExtJs4 Model with user defined id

I have the following model: Ext.define('Gst.model.Order', { extend: 'Ext.data.Model', idProperty: 'id', fields: [ { name: 'id', type: 'string' } ] }); My issue is that the ID of the order model is user defined. So the…
John
  • 465
  • 1
  • 4
  • 17
7
votes
1 answer

How to use Sencha SDK for ExtJS?

I am using ExtJS 4.1 and I am deploying my simple HelloExt program on GlassFish V3.1. I am trying to create a build from Sencha SDK. I have used the following two commands... C:\>sencha create jsb -a http://localhost:8080/HelloExt/index.jsp -p…
Gunjan Shah
  • 5,088
  • 16
  • 53
  • 72
7
votes
2 answers

Mysterious FireBug Error repeats with ExtJS

When debugging ExtJS 4 (tried both versions 4.1.0 and 4.1.1), FireBug repeatedly shows the following error: An invalid or illegal string was specified http://docs.sencha.com/ext-js/4-1/extjs/ext-all.js Line 18. It does not break on the error, though…
justinzane
  • 1,897
  • 1
  • 26
  • 38
7
votes
3 answers

Sorting one column based on another column in ExtJs 4.1 grid

I am using ExtJs 4.1 framework. I have a grid which shows only one column (Name). The grid is associated with a store which have two fields (Name and SortOrder). The field "name" in store is associated with Name column of the grid. I want to sort…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
6
votes
2 answers

ExtJS 4.1 treepanel - expanding a treepanel is resulting in duplicate records

I am using ExtJS 4.1. I have a TreePanel which I bind to one of two TreeStore. After I rebind a store & expand collapse nodes, records are getting duplicate & I see error Uncaught TypeError: Cannot read property 'internalId' of undefined Another…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
6
votes
2 answers

Paste from word to extjs editor

and i found one more issue with extjs editor. when i copy the
  1. Bhaskara Arani
    • 1,556
    • 1
    • 26
    • 44
6
votes
5 answers

Ext.data.Store's each() is ignoring filtered records

I am using Ext.data.Store's each(). But this method, when store is filtered, only loops over the filtered records. Do we have any other method or work around to loop over all the records of a store even when a filter is applied on the store. var…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
6
votes
4 answers

Extjs 4.1 How to select first item in combo

I have a combo look like http://jsfiddle.net/Q5nNV/ everything is well but when i search (typing) some text like asdf to combo box and click clear button That's not select first item, it look like Here is my code var states =…
DeLe
  • 2,442
  • 19
  • 88
  • 133