extjs4

How to change cursor image in ExtJS 4.1

混江龙づ霸主 提交于 2020-01-06 02:35:08
问题 In ExtJS 4.0.2a I could change the cursor image over a grid using: body.setStyle('cursor','move'); This doesn't seem to work in 4.0.7 or 4.1. I don't get any css error but it does give an unnatural lag at the point where the change should occur. Maybe it gets overridden? UPDATE: I am trying to run this from a grid onitemmousedown event. I found that the GridView gets a class ".x-unselectable" to make grid text unselectable (which I want). However in ExtJS 4.0.7 and 4.1 this ".x-unselectable"

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

Using ExtJS 4 charts in ExtJS 3 application

北慕城南 提交于 2020-01-05 07:19:07
问题 I'm trying to add Ext4 charting to an existing Ext3 application, using ext-all-sandbox.js. I've got the basics working, but the code below gives axis.processView is not a function . It works fine without the axes defined (but with no axes obviously). It appears that the config objects are being used directly instead of being used to create actual axis instances. Any solutions to get this working? TestGraphPanel = Ext.extend(Ext.Panel, { initComponent: function() { TestGraphPanel.superclass

How to scroll to the end of the form in ExtJS

若如初见. 提交于 2020-01-05 05:34:07
问题 I have a form with autoScroll feature. How can I scroll to the bottom of the form when I add a new item to it? height: 200, autoScroll: true, Here is my sample code 回答1: If the field is added at the end of the form then the following solution might help: EXTJS 5 & 6 http://docs.sencha.com/extjs/5.1.0/api/Ext.form.Panel.html#cfg-scrollable In the form config: scrollable: true, In button handler: { xtype: 'button', itemId: 'addChildBtn', disabled: false, text: 'Clone fieldset', handler:

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

How to specify model name in store of an extjs 4?

我是研究僧i 提交于 2020-01-05 02:44:47
问题 I am getting frustrated while working with store and model of extjs 4. I am getting Store defined with no model. You may have mistyped the model name. error even though I have specified model name inside store. Here is my code : Ext.define('iWork.store.CandidateDistribution', { extend: 'Ext.data.TreeStore', autoLoad: true, requires: 'iWork.model.Location', model: 'iWork.model.Location', proxy: { type: 'ajax', url: 'data/CandidateDistribution/CandidateCount.json', reader: { type:

( libraries issue )

亡梦爱人 提交于 2020-01-04 09:23:13
问题 I am using Sencha Architect with Extjs 4 and by following the basic example here : http://geoext.org/tutorials/quickstart.html#basic-example i have to switch included libraries from Ext 3 to Ext 4, so i typed : <script src="extjs-4/ext-all.js" type="text/javascript"></script> <script src="extjs-4/ext.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="extjs-4/resources/css/ext-all.css"></link> <script src="GeoExt/lib/GeoExt.js" type="text/javascript"></script>

how to set radiogroup radiofield based on the json data extjs 4

岁酱吖の 提交于 2020-01-04 05:35:32
问题 hi forum member I am having one problem with setting the radiofield in the extjs 4 my form radiogroup xtype code is given below { xtype: 'radiogroup', dataIndex: 'gender', margin: 5, fieldLabel: 'Gender', items: [{ xtype: 'radiofield', name: 'gender', boxLabel: 'Male', inputValue:'0' }, { xtype: 'radiofield', name: 'gender', boxLabel: 'Female', inputValue:'1' }] } my json data I am receiving is { "total": 1, "success": true, "employeedata": [{ "username": "yaryan997", "surname": "Singh",