extjs4.1

Could not complete the operation due to error 80020101

做~自己de王妃 提交于 2019-12-01 08:57:55
I am running an ExtJS 4.1 application. It is running just fine in FireFox, but I get this error in Internet Explorer 8: Could not complete the operation due to error 80020101. I have found various possible fixes, but none seemed to fit my needs. How can I make the application work in IE8? Andrew Leach Error 80020101 is an AJAX error, so there are a number of potential issues to investigate. A useful starting point might be a prior SO question https://stackoverflow.com/a/10275316/1204258 which deals with trailing commas in object definitions. I got the same error in an included js file. it

Could not complete the operation due to error 80020101

时间秒杀一切 提交于 2019-12-01 06:26:59
问题 I am running an ExtJS 4.1 application. It is running just fine in FireFox, but I get this error in Internet Explorer 8: Could not complete the operation due to error 80020101. I have found various possible fixes, but none seemed to fit my needs. How can I make the application work in IE8? 回答1: Error 80020101 is an AJAX error, so there are a number of potential issues to investigate. A useful starting point might be a prior SO question https://stackoverflow.com/a/10275316/1204258 which deals

Loading TreeStore with JSON that has different children fields

坚强是说给别人听的谎言 提交于 2019-12-01 01:16:53
I am having a JSON data like below. { "divisions": [{ "name": "division1", "id": "div1", "subdivisions": [{ "name": "Sub1Div1", "id": "div1sub1", "schemes": [{ "name": "Scheme1", "id": "scheme1" }, { "name": "Scheme2", "id": "scheme2" }] }, { "name": "Sub2Div1", "id": "div1sub2", "schemes": [{ "name": "Scheme3", "id": "scheme3" }] } ] }] } I want to read this into a TreeStore, but cannot change the subfields ( divisions , subdivisions , schemes ) to be the same (eg, children ). How can achieve I this? When nested JSON is loaded into a TreeStore, essentially the children nodes are loaded

Ext JS 4 - How to control rowEditor inside controller

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 00:07:17
I want to learn how can I controller rowEditor plugin inside controller.. Here's rowEditor definition: Ext.define(appName + '.view.department.DepartmentGrid', { initComponent: function() { this.rowEditor = Ext.create('Ext.grid.plugin.RowEditing', { clicksToEdit: 2 }); } } ** Controller** this.control({ 'departmentgrid': { // ?? } }); It's in the docs: http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.plugin.RowEditing-event-edit this.control({ 'departmentgrid': { edit: this.onDepartmentGridEdit } }); 来源: https://stackoverflow.com/questions/11914525/ext-js-4-how-to-control-roweditor-inside

Loading TreeStore with JSON that has different children fields

喜你入骨 提交于 2019-11-30 20:54:11
问题 I am having a JSON data like below. { "divisions": [{ "name": "division1", "id": "div1", "subdivisions": [{ "name": "Sub1Div1", "id": "div1sub1", "schemes": [{ "name": "Scheme1", "id": "scheme1" }, { "name": "Scheme2", "id": "scheme2" }] }, { "name": "Sub2Div1", "id": "div1sub2", "schemes": [{ "name": "Scheme3", "id": "scheme3" }] } ] }] } I want to read this into a TreeStore, but cannot change the subfields ( divisions , subdivisions , schemes ) to be the same (eg, children ). How can

Ext 4.1.1: Add new record to Store

岁酱吖の 提交于 2019-11-30 19:29:27
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 ? Evan Trimboli You need to set queryMode: 'local' in the combo box. Minimal example: Ext.onReady(function() { var store = Ext.create('Ext.data.Store', { alias: 'store.ModeStore', autoLoad: false, fields: [{ name: 'mode', type: 'string' }, { name: 'id', type: 'string' }], data: [{ mode: 'mode1', id: 1 }] }); var container = Ext.create('Ext.form.field.ComboBox', { renderTo: Ext.getBody(),

Ext JS 4 - How to control rowEditor inside controller

*爱你&永不变心* 提交于 2019-11-30 18:20:33
问题 I want to learn how can I controller rowEditor plugin inside controller.. Here's rowEditor definition: Ext.define(appName + '.view.department.DepartmentGrid', { initComponent: function() { this.rowEditor = Ext.create('Ext.grid.plugin.RowEditing', { clicksToEdit: 2 }); } } ** Controller** this.control({ 'departmentgrid': { // ?? } }); 回答1: It's in the docs: http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.plugin.RowEditing-event-edit this.control({ 'departmentgrid': { edit: this

ExtJS 4.1 - Returning Associated Data in Model.Save() Response

こ雲淡風輕ζ 提交于 2019-11-30 17:44:31
I am curious as to why the record contained in the result set of a Model.save() response does not properly return updated associated data, despite the updated data being contained in the server response... Example Model & Store Definition: Ext.define("App.model.test.Parent",{ extend: 'Ext.data.Model', requires: ['App.model.test.Child'], fields: [ {name: 'id', type: 'int' }, {name: 'name', type: 'string'}, {name: 'kids', type: 'auto', defaultValue: []} ], idProperty: 'id', hasMany: [{ foreignKey: 'parent_id', model: 'App.model.test.Child', associationKey: 'kids', name: 'getKids' }], proxy: {

Browser does not remember password during login

吃可爱长大的小学妹 提交于 2019-11-30 17:35:09
问题 An earlier question mentioned a method using the el config in order to make the browser remember passwords. Howewer, the el config no longer exists in ExtJS 4.1. Now, what should I do? 回答1: I believe it should be contentEl instead of el but I do this another way. You can build the entire thing with ExtJS directly. The only twist is that Ext fields will be created with the autocomplete=off attribute by default, so I use a derived class to override that. Ext.define('ACField', { extend: 'Ext

ExtJS 4 select multiple CheckColumn checkboxes with checkbox header

给你一囗甜甜゛ 提交于 2019-11-30 14:14:09
问题 I have a column of checkcolumn type to enable toggling boolean values. I'd like to be able to toggle all rows for that value at once. Ideally, I'd be able to add a checkbox to the checkcolumn header and listen for changes. Is that possible? I'd like to note that I am not looking for a checkboxmodel to select rows. 回答1: I have created an updated version of the Ext.ux.CheckColumn for this, just include this code after the extjs code is included: Ext.define('Ext.ux.CheckColumn', { extend: 'Ext