extjs5

How to add a custom CSS file in ExtJs 5?

我们两清 提交于 2019-12-25 03:44:11
问题 In ExtJs 4, I included a custom css like this: <!-- <x-compile> --> <!-- <x-bootstrap> --> <link rel="stylesheet" href="bootstrap.css"> <script src="ext/ext-dev.js"></script> <script src="bootstrap.js"></script> <!-- </x-bootstrap> --> <script src="app.js"></script> <!-- </x-compile> --> <link rel="stylesheet" href="/custom/css.css" type="text/css" charset="utf-8" /> The fact that the link to the CSS comes after the <x-compile> section makes that it is loaded later and thus rules in custom

How to add a custom CSS file in ExtJs 5?

拟墨画扇 提交于 2019-12-25 03:44:07
问题 In ExtJs 4, I included a custom css like this: <!-- <x-compile> --> <!-- <x-bootstrap> --> <link rel="stylesheet" href="bootstrap.css"> <script src="ext/ext-dev.js"></script> <script src="bootstrap.js"></script> <!-- </x-bootstrap> --> <script src="app.js"></script> <!-- </x-compile> --> <link rel="stylesheet" href="/custom/css.css" type="text/css" charset="utf-8" /> The fact that the link to the CSS comes after the <x-compile> section makes that it is loaded later and thus rules in custom

Porting from EXT js 3.4 to EXT js 5.0

早过忘川 提交于 2019-12-25 03:05:09
问题 I have a web application on Sencha currently using ExtJS 3.4 functionality using the Sencha Architect 3.2, want to port/Migrate some forms to ExtJS 5.0. What will be the changes required? they will be minor or Major ? Do I need to change whole structure to MVC ? Quick reply will be appreciated. 回答1: Moving from Ext JS 3.x to >= 4.x (in your case, 5.x) is a complete application rewrite. In 4.0, Ext JS completely changed how the class system works (using syntax like Ext.define() ) -- a breaking

Paging not working properly in extjs

∥☆過路亽.° 提交于 2019-12-25 02:49:10
问题 My paging bar displays and says Displaying 1 - 5 of 10. But all of the 10 records are being displayed. I can't seem to figure it out. Here is my List.js file Ext.define('MyApp.view.main.List', { extend: 'Ext.grid.Panel', xtype: 'mainlist', require: [ 'MyApp.view.student.StudentForm' ], title: 'Student Records', scrollable: true, margin: 20, layout: { type: 'vbox', align: 'stretch' }, reference: 'studentGrid', frame: true, collapsible: true, store: 'StudentStore', collapsible: true, columns: [

ExtJS5 tree dragdrop deep copy

余生颓废 提交于 2019-12-24 11:22:59
问题 In ExtJS5 I have a TreePanel with drag drop enabled. When I drag a node with children from a source tree to a target tree only the parent node is copied. If I try a deep clone in the 'beforedrop' listener, it fails with the following error: Ext.data.Model.constructor(): Bad Model constructor argument 2 - "session" is not a Session The view has a viewcontroller but does not have a viewmodel. Tree definition in view: xtype: 'treepanel', itemId: 'myProjectsTree', rootVisible: false, viewConfig:

Sencha: Cannot satisfy requirements for “ext”

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 09:36:06
问题 trying to refresh my sencha extjs app and always get this error: Commands: sencha app refresh sencha app upgrade Always the same error: [ERR] Cannot satisfy requirements for "ext"! [ERR] The following versions cannot be satisfied: [ERR] root: ext@5.1.1.451 (No matches!) [ERR] Cannot resolve package requirements What can I do? Sencha Cmd: v6.1.3.42 (with last version 6.2.0 I get this error too) Core Version 5.0.0 Extjs Version 5.1.1.451 Thanks in advance 回答1: This error is occurring because

extjs 5 grid's scrollbar does not work in border layout panel

眉间皱痕 提交于 2019-12-24 06:26:09
问题 in border layout panel , the grid's scroll-bar doesn't work correctly even though the store of grid is long enough to make the grid overflow! if my grid is in none border layout panel , the scroll-bar is OK, but when i put the grid in the border layout panel , either there is no scroll-bar ,either there is a invalid scroll-bar! { // what i want is to make this grid to scroll ! the scroll-bar is nested in a border layout panel. xtype: 'grid', title: 'west bottom grid(I am begging for your

extjs 5 grid's scrollbar does not work in border layout panel

馋奶兔 提交于 2019-12-24 06:26:09
问题 in border layout panel , the grid's scroll-bar doesn't work correctly even though the store of grid is long enough to make the grid overflow! if my grid is in none border layout panel , the scroll-bar is OK, but when i put the grid in the border layout panel , either there is no scroll-bar ,either there is a invalid scroll-bar! { // what i want is to make this grid to scroll ! the scroll-bar is nested in a border layout panel. xtype: 'grid', title: 'west bottom grid(I am begging for your

Extjs 5 Uncaught TypeError: Cannot read property 'schema' of null

一曲冷凌霜 提交于 2019-12-24 01:17:57
问题 I changed extjs 4.2.3 to 5.0.1 and i have this error.Any ideas? Uncaught TypeError: Cannot read property 'schema' of null Ext.define.extractDataext-all-debug.js:8144 Ext.Base.Base.addMembers.callParentext-all-debug.js:61852 Ext.define.extractDataext-all-debug.js:68174 Ext.define.onNodeInsertext-all-debug.js:68093 Ext.define.onNodeAppendext-all-debug.js:68329 Ext.define.updateRoot 来源: https://stackoverflow.com/questions/27169371/extjs-5-uncaught-typeerror-cannot-read-property-schema-of-null

Load extjs using bootstrap.js from outside of extjs app folder

馋奶兔 提交于 2019-12-23 21:23:43
问题 I have built extjs 5 app using sencha cmd and I want to use it in my custom hmtl page. I have the following structure: extjsapp .sencha app build ext packages ...... bootstrap.js bootstrap.json app.js ....... customapp index.html script.js What I want to do is in my customapp/index.html I request bootstrap.js and it should load all packages and ext from extjsapp folder. By default it tries to load them from customapp/ext which is relative to where boostrap.js is used. How can I make/build it