extjs5

Extjs 5. Ext.application is not a function. Why?

眉间皱痕 提交于 2019-12-23 10:25:41
问题 I get an error in console: Ext.application is not a function . My index.html file contains this code: ... <link rel="stylesheet" type="text/css" href="/ext-5.0.1/packages/ext-theme-neptune/build/resources/ext-theme-neptune-all.css" /> <script src="/ext-5.0.1/ext-all-debug.js"></script> <script type="text/javascript" src="app.js"></script> ... While app.js has just this code, taken from one demo: Ext.application({ name: 'AM', appFolder: 'app', launch: function() { Ext.create('Ext.container

ExtJS 5: confusion with persisting changes to view model/form record

馋奶兔 提交于 2019-12-23 03:13:18
问题 I've been having a little trouble figuring out the best approach for this problem... should I use a form with a loaded record (gives me easy access to validation on each field), or should I let binding do all of the work (can leverage the ViewModel more). I haven't been able to decide, so currently, I'm utilizing both... I'm setting a viewModel record AND loading my form with the same record. I really don't like this approach, but it's getting the job done. That's besides the point of this

ExtJS RESTful service fail to handle json data

喜你入骨 提交于 2019-12-20 06:39:01
问题 I implement simple RESTful Service. These are Rest request url and the response json data. http://localhost:8080/RESTfulTestWeb/rest/services/getJson/aupres {"id":"aupres","passwd":"aaa","age":45,"name":"joseph"} The problem is ExtJS Store object client can not handle the above json data. These are ExtJS client codes Ext.define('extjs.model.Member', { extend: 'Ext.data.Model', fields : [{ name : 'id', type : 'string' }, { name : 'passwd', type : 'string' }, { name : 'age', type : 'int' }, {

metachange event is not fired

落爺英雄遲暮 提交于 2019-12-20 02:56:26
问题 I have a store, which looks like this: Ext.define('GridGeneral.store.GridGeneralStore',{ extend:'Ext.data.Store', model:'GridGeneral.model.GridGeneralModel', autoLoad:true, proxy:{ type:'ajax', url:'/api/grid/gridgeneralstore.php', reader:{ type:'json' } } }); Inside a controller I want to fire `metachange' event. I try to do it like this: init:function(){ Ext.getStore('GridGeneralStore').addListener('metachange',this.metaChanged, this); //^^^not fired Ext.getStore('GridGeneralStore')

ExtJs 5 slowly form binding

心不动则不痛 提交于 2019-12-14 03:59:48
问题 I have problem with form panel and binding modelView in ExtJS 5. When form panel after render, values set slowly. Example in fiddle 回答1: This is because the browser is doing a complete layout reflow when changing a Label field (which your WizardOrderRowDisplayField is extending). The Label is not really meant to display changing values. Therefore, the implementation is a bit simplistic. When changing the value it injects new DOM content into the page. When changing DOM content, the browser

ExtJS 5 - Download file from POST servlet request

北战南征 提交于 2019-12-13 19:22:51
问题 I have trying to implement the export functionality in ExtJS 5 using form submit method. And I had look at the following stackoverflow link, it helps but not fully. Extjs 4 (with a code for 3.4 below) downloading a file returned from a post request In my case i facing an issue after the request response is successful, getting invalid JSON encoding error.Even i tried to change the reader from JSON reader to some other string reader(mentioned in link), but it is quite successful for some reason

ComboBox in IE 10/11 be focus [closed]

懵懂的女人 提交于 2019-12-13 10:23:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Ext version: 5.1.0.107 Browser: IE 10/11 While i create a ComboBox with a value, the ComboBox will be focus after it was rendered. demo: http://ift.tt/1326fZR How can i resolve this problem? 回答1: Solution you can find here: https://www.sencha.com/forum/showthread.php?296103-ComboBox-in-IE-10-11-be-focus Ext

ExtJS 5 combobox - submitting both value and text

泪湿孤枕 提交于 2019-12-13 07:16:45
问题 I'm trying to get a simple combobox in ExtJS 5 to submit both the value and text of the selected element. From everything I've read it seems like this should work if I include the hiddenName property for the combo but I cannot get it to submit both. Here is the relevant combobox config: name: 'myCombo', hiddenName: 'myComboId', submitValue: true, xtype: 'combo', queryMode:'local', valueField: 'id', displayField: 'state', And here is a jsFiddle with this all set up: fiddle If you look in

Synchronously loading consider adding Ext.require(…) above Ext.onReady

天涯浪子 提交于 2019-12-13 06:56:32
问题 I've already read this, this, this and this but it didn't give a solution. I've generated a basic application with sencha cmd. I've created a model "Groupe.js", a store "TreeGroupes.js" that is a "collection" of rows of "Groupe.js" (sorry if I'm not using the right words, I hope you know what I mean). Then I've created a view of this collection: Gestion.view.TreeGroupes. And I'm displaying it in my main controller view/main/Main.js. Here's the tree: . ├── Application.js ├── model │ ├── Groupe

Accessing functions in ViewController from form created on-the-fly

不羁的心 提交于 2019-12-13 05:59:09
问题 The view controller will be active, but it will be controlling one sub-view of many other views, so I think there will be other active view controllers. By on-the-fly basically the form is created by a completely different dispatcher, with components and handlers, etc. with no direct connection between the view controller and the form. The view controller has several functions I need to get results from: canContinue: function (arg1) {var result = true; /*...*/ return result;} getStatus: