extjs4.1

How to handle incoming ajax requests after destroying window?

拥有回忆 提交于 2020-01-15 03:17:13
问题 I create a window containing grids that send off ajax requests. Now, I immediatley close the window again before the grids are fully created and the ajax requests return. I have two problems: My components within a window are still "alive" after a window is destroyed Chrome console lists them. Although my window has the autoDestroy: true the gridpanel and store are still existing after the window is closed. When closed, the destroy event is fired. Docs say, all components under the window

ExtJS 4.1.0 grid performance issue

依然范特西╮ 提交于 2020-01-14 03:09:19
问题 I am using an ExtJS grid with 50 columns and more than 1000 records. I am facing performance issues while scrolling vertically/horizontally and for cell editing. Is it possible to get smooth performance without pagination for this size of data, or is pagination the only solution? 回答1: You should use infinite scolling. This allows you to display your table with 1000 records, while they are not created in the dom, so they are not slowing down your browser. Look at this example in the docs. You

How to use Sencha SDK for ExtJS?

做~自己de王妃 提交于 2020-01-12 07:51:06
问题 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 appname.jsb 3 -v C:\>sencha build -p appname.jsb3 -v -d . As per the documentation, it will create app-all.js file. But where does it create the file? How can I know IF build are created successfully or not? Where are the generated JS files? I made a

How to work with treecombo in Extjs 4.1

≯℡__Kan透↙ 提交于 2020-01-12 05:46:06
问题 I found tutor in http://www.sencha.com/forum/showthread.php?198856-Ext.ux.TreeCombo I try to make a treecombo in Extjs4.1 in http://jsfiddle.net/rq2ha/ here is my code Ext.onReady(function() { Ext.create('Ext.ux.TreeCombo', { margin:10, width:120, height: 10, treeHeight: 10, treeWidth: 240, renderTo: 'treecombo3', store: storeMenu, selectChildren: false, canSelectFolders: true ,itemTreeClick: function(view, record, item, index, e, eOpts, treeCombo) { var id = record.data.id; // I want to do

Extjs4 Sending accented characters to the server

 ̄綄美尐妖づ 提交于 2020-01-06 11:23:02
问题 I am working with Extjs4. I am trying to send accented characters to server. I was trying to send ó. And what I was receiving at the server side was ó. I am sending it using Store proxy. In store proxy, I have added headers: { 'Content-Type': 'charset=utf-8' } Still it did not send the accented characters properly. How should I send accented characters to the server? Thanks in advance! 回答1: user2316489, IMHO this is a problem with your server configuration, rather than a front-end

Extjs4 Sending accented characters to the server

天涯浪子 提交于 2020-01-06 11:20:30
问题 I am working with Extjs4. I am trying to send accented characters to server. I was trying to send ó. And what I was receiving at the server side was ó. I am sending it using Store proxy. In store proxy, I have added headers: { 'Content-Type': 'charset=utf-8' } Still it did not send the accented characters properly. How should I send accented characters to the server? Thanks in advance! 回答1: user2316489, IMHO this is a problem with your server configuration, rather than a front-end

How can I put my Extjs 4.2.x project inside latest Angular App

℡╲_俬逩灬. 提交于 2020-01-05 08:01:45
问题 I have a large app built in Ext4.2.x. Now the requirement is to do further development in Angular. I am trying to create a wrapper of Angular around Ext app so that we can use angular for further development/ migration of code piece by piece. till the time both the framework should work in harmony. Approach I am trying: I have created app(name is: NgApp ) scaffolding using angular-cli and put that code inside the root directory of Ext app( ExtNg ). Created a folder( ExtNg/NgBuild )to hold the

How to check the style properties in extjs

戏子无情 提交于 2020-01-05 07:40:49
问题 How to check the style properties in extjs? To set a style to a panel, we can use setBodyStyle . After setting the style, I want to check the value of a particular property. Like, var panel = Ext.getCmp('id'); if(panel.getStyles().fontSize == 24) //for example //do this stuff else //do the other stuff I am using extjs 4.1.1a 回答1: These methods are only available on Ext.dom.Element level. Meaning you will need to call var panel = Ext.getCmp('id'); if(panel.el.isStyle('fontSize', 24)) //for

Store.sync() with new record does not import server-generated fields in response

≯℡__Kan透↙ 提交于 2020-01-05 03:31:45
问题 I have a grid with row-editing enabled. When I add a row and call store.sync(), the server generates certain fields on that record, and returns the full record info in the response. However, ExtJS does not seem to update its copy of the record, except for the id. Is there a way to make it do that, or do I need to write custom code? This is an excerpt of the grid's controller: doneEdit: function (editor, e, eOpts) { var me = this; // // Set up loading mask on grid during update (if record

Store.sync() with new record does not import server-generated fields in response

这一生的挚爱 提交于 2020-01-05 03:31:31
问题 I have a grid with row-editing enabled. When I add a row and call store.sync(), the server generates certain fields on that record, and returns the full record info in the response. However, ExtJS does not seem to update its copy of the record, except for the id. Is there a way to make it do that, or do I need to write custom code? This is an excerpt of the grid's controller: doneEdit: function (editor, e, eOpts) { var me = this; // // Set up loading mask on grid during update (if record