extjs

Uncaught TypeError: Cannot read property 'isSynchronized' of undefined

折月煮酒 提交于 2019-12-11 03:49:11
问题 I have a problem with sorting my ExtJS grid. I'm using Ext JS version 5.1.1.451. The grid loads well but when I try to sort the columns I get the "Uncaught TypeError: Cannot read property 'isSynchronized' of undefined" error. The method addCls is triggered on mouse movement and when the error occures, me.getData() returns undefined , where me is constructor $observableInitialized: true component: constructor config: Object destroy: () {} dom: null el: null events: Object hasListeners: statics

Uncaught TypeError: Cannot call method 'insert' of undefined

我的梦境 提交于 2019-12-11 03:47:37
问题 im pretty new to extjs and having trouble with it i am using the browser-layout example for my application im trying to add a form grid to it i defined a new class but when i call my form grid i get this error Uncaught TypeError: Cannot call method 'insert' of undefined here is my code: Ext.define('Ext.app.myFormGrid', { extend: 'Ext.grid.Panel', alias: 'widget.formgrid ', myData: [ ['3m Co', 71.72, 0.02, 0.03, '9/1 12:00am'], ['Alcoa Inc', 29.01, 0.42, 1.47, '9/1 12:00am'], ['Altria Group

Can't Send Parameter Ajax in ExtJs

给你一囗甜甜゛ 提交于 2019-12-11 03:42:52
问题 I have code in View Extjs. Here's the code: var storeTree = Ext.create('Ext.data.TreeStore', { proxy: { type: 'ajax', method: 'POST', url: 'data/newoss_get_paket.php', params: { nopstn:"02318330549", num:"tester" } } }); I call it in newoss_get_paket.php: $pstn = $_POST['nopstn']; $number= $_POST['num']; But the result is null.. parameters can't sent to php file. any solution for me? 回答1: Use the extraParams config instead of params . There is no params config on a proxy. 来源: https:/

How to implement CSRFGuard in ExtJs AjaxRequest?

流过昼夜 提交于 2019-12-11 03:36:09
问题 I'm using ExtJs for UI and am doubtful of using CSRFGuard in AjaxRequest of extjs. I'm currently appending the CSRFName and value to the URL of ajax and it is working perfectly fine. Is there any way that the token name and value could be added as header of Ajax so that it need not be written for each and every AjaxRequest. Seeking early response. Thanks 回答1: You could put it in http://docs.sencha.com/ext-js/4-1/#!/api/Ext.Ajax-event-beforerequest and that would apply to every AJAX request

Sencha Touch store 'aftersync'-like event

喜夏-厌秋 提交于 2019-12-11 03:34:56
问题 I'm using a ListView with a store/ajax-proxy/json-reader/json-writer. I'd like to set the ListView to loading before I call store.sync() , and remove the loading once the response got back from the server. Problem is, I don't know where I could hook in my call to be processed once the request is done, as all I'm doing is calling sync() . Store has a beforesync event, what I'd like is something like aftersync . Any ideas how to accomplish that? 回答1: By reading the Sencha Touch source code, it

Extjs 4.1 Check Change Listener

谁说我不能喝 提交于 2019-12-11 03:32:52
问题 What is the right way to handle menu check items events ? I have this menu: { xtype: 'button', id: 'types_btn', autoWidth: true, text: 'Types', menu: { xtype: 'menu', frame: true, id: 'types_menue', items: [ { xtype: 'menucheckitem', id: 'f_type', text: 'first', listeners: { checkchange: { fn: me.onFirstButtoncheckchange, scope: me } } }, { xtype: 'menucheckitem', id: 's_type', text: 'second', listeners: { checkchange: { fn: me.onSecondButtoncheckchange, scope: me } } } Then the functions:

custom component reuse with extjs4

梦想与她 提交于 2019-12-11 03:30:13
问题 I have created a custom grid in a javascript file. I want to use it as a xtype on to different panels in seperate js files. If I use it on a single panel, it works fine; but when I use try it use it on different panels at the same time, I get a error in the chrome developer tool console saying: Uncaught TypeError: Cannot read property 'isComponent' of undefined My grid definition is as follows: Ext.define('DataBox.view.FootNotes', { extend : 'Ext.grid.Panel', alias : 'widget.footNotes',

How to use global functions/Utility Class in EXTJS

陌路散爱 提交于 2019-12-11 03:25:46
问题 My code structure is as follows-> MyApp-> app -> controller, model, store, shared (util-> Utility.js), view I have created the following Utility Class Ext.define('MyApp.shared.util.Utilities', { myFunction : function (val, meta, rec) { //do something return val; } }); I am trying to call the myFunction while rendering a column in my grid as follows -> Ext.define('MyApp.view.MyGrid', { extend: 'Ext.grid.Panel', initComponent: function() { var rendererFn = Ext.create('MyApp.shared.util

Line Chart Not Connecting Dots (Sencha-Charts Package)

折月煮酒 提交于 2019-12-11 03:18:58
问题 I'm having issues with an extjs Cartesian chart component whereby it is failing to draw a line between two points. I've narrowed the issue down to missing interval-data for a step in a particular series but haven't found a good solution. In the following - simplified - example, you will see a break in the red line where data exists for a marker on the blue line at interval "three" - which sits between two red markers. I'm trying to find a way to draw straight from the red marker at interval

ExtJS 3.x: How to disable the red mark indicating a dirty record in ExtJS EditorGridPanel

前提是你 提交于 2019-12-11 03:17:21
问题 EditorGridPanel shows a small red triangular corner on the column that is edited to indicate an unsaved record. Since I am using autoSave, I don't need to indicate the record as dirty/unsaved. Is there an easy way to disable this ? 回答1: See this : http://www.sencha.com/learn/Ext_FAQ_Grid#Dirty_Record_.2F_Red_Flag_.28modifying.2C_etc..29 回答2: view: Ext.grid.GridView({markDirty: false}) or viewConfig: { markDirty: false } 回答3: .x-grid3-dirty-cell { background-image: none; } 来源: https:/