extjs4

How to use the 'overrides' folder generated by Sencha cmd for an Ext JS 4 project

十年热恋 提交于 2020-01-04 04:35:07
问题 I have generated a project using Sencha cmd. This creates a nice folder named 'overrides' where I have put my overridden Ext.Ajax class. I then include it in my app.js file like so requires: [ 'overrides.Ajax' ] This works just fine when using my app, however when I try to build it using Sencha cmd I get the following error: [ERR] BUILD FAILED [ERR] com.sencha.exceptions.BasicException: The following error occurred while e xecuting this line: [ERR] Z:\public_html\LoginScreen\.sencha\app\build

Expand a tree path by sending the internalId as parameter

ぐ巨炮叔叔 提交于 2020-01-03 02:47:28
问题 Please consider the situation: I'm using Extjs' tree.Panel to have some sort of navigation on a page. I have a list of items in another portion of the page, whose list items have a unique id that matches the internalId of a node in the tree. I wish to bind a click for each list item and expand the tree to the node specified by the id on the item. I intend to use the expandPath(path) method from the tree. My question would be: how can I get the path string with just the internalId ? Thank you.

Ext.ComponentLoader lazy loading html+js within component

廉价感情. 提交于 2020-01-03 02:25:18
问题 I have four files: layout.html //contains ext resources layout.js //contains my panel partial.html //contains <script src="partial.js"> partial.js //contains a component I have this panel configured in my layout.js: var myPanel = Ext.widget('panel',{ title: 'Load HTML into panel', html: 'initial', width: 300, height: 300, loader: { url: 'partial.html', renderer: 'html', scripts: true, autoLoad: true }, renderTo: Ext.getBody() }); And this code in my partial.js Ext.onReady(function(){ var

how to make a “MVC Application” with extjs 4.0 beta 3?

与世无争的帅哥 提交于 2020-01-02 14:30:47
问题 Is there someone here who made a MVC application using EXTJS 4 BETA 3? and works fine?? please help me how?, .. I have followed step by step here .. and @Abdel Olakara help but there is still an error ... here my firebug [Ext.Loader] Synchronously loading 'AM.controller.Users'; consider adding Ext.require('AM.controller.Users') above Ext.onReady [Ext.Loader] Synchronously loading 'AM.store.Users'; consider adding Ext.require('AM.store.Users') above Ext.onReady this.getView('Viewport') is null

Extjs 4: Time Stacked Bar Chart, possible?

喜夏-厌秋 提交于 2020-01-02 11:27:14
问题 Hi I'm trying to accomplish a time stacked bar chart where the input data looks like this: {"name":"Folienwechsel", "starttime":"02/29/2012 09:50:07", "endtime":"02/29/2012 09:50:46", "duration":38546.0}, {"name":"Pause", "starttime":"02/29/2012 09:50:46", "endtime":"02/29/2012 09:51:36", "duration":49943.0}, {"name":"Wartezeiten", "starttime":"02/29/2012 09:51:36", "endtime":"02/29/2012 10:04:43", "duration":787086.0} As you see the start time and end time are continued, when a state finish

ExtJS 4.0.7 Load complete TreePanel

被刻印的时光 ゝ 提交于 2020-01-02 05:22:09
问题 I am in trouble with the ExtJS 4.0.7 TreePanel. I would like to load the complete tree from on JSON request. The request returns the following: { "data": { "children": [ { "text": "OS", "leaf": false, "children": [ { "text": "Hostname", "leaf": false, "children": [ { "text": "hostname.int.com", "leaf": true, "children": [] } ] } ] } ] } } With it doesn't work with the following store configuration (or any other i've tried) Ext.define('My.store.SysInfo', { extend: 'Ext.data.TreeStore', model:

How to use both Ext 3 and Ext 4 togeheter with GeoExt?

浪子不回头ぞ 提交于 2020-01-01 19:33:48
问题 We are trying to load both Ext 3 and Ext 4 with the use of ext-all-sandbox.js to be able to use GeoExt in Ext 4 . Looking in our DOM it seems we have succeeded with loading Ext 3, Ext 4, GeoExt and OpenLayers but are still getting errors like: "Ext.functionFactory() is not a function" and "Ext.supports is undefined" . Is there anyone out there that have tried a similar thing? This is the index.jsp where we are loading the js files. <!DOCTYPE HTML> <%@ page pageEncoding="UTF-8"%> <html> <head>

How to change background of hovered and pressed extjs-button dynamically

血红的双手。 提交于 2020-01-01 19:28:28
问题 Hy there, i need the ability to change the background-color for the different states (normal, hover, pressed) of a button dynamically. What i've came up with so far is the following: http://jsfiddle.net/suamikim/c3eHh/ Ext.onReady(function() { function updateBackground() { var theWin = win || this, // neccessary because of the call from the afterrender-event btn = theWin.down('#btnTest'), bckgr = theWin.down('#btnBckgr').getValue(), bckgrHover = theWin.down('#btnBckgrHover').getValue(),

How to export grid data to excel along group headers/ summary records with expand and collapse action in Excel?

…衆ロ難τιáo~ 提交于 2020-01-01 19:26:14
问题 I have done application using Extjs 4. I have requirement need to export grid data to excel. I have grid it contains many records, showing records by group headers/summary(collapse/Expand actions ). The same thing i need to export grid data to excel the same activity need collapse/expand in excel sheet . I have tried i am able to export grid records with group headers.summary to excel, cool it is working but collapse/expand is not happening in excel sheet. I need to implement this feature by

ExtJS 4 Application Login & Authentification & Rights

谁说我不能喝 提交于 2020-01-01 12:02:57
问题 I'm developing an web application on Ext JS 4 using the new recommended application structure. Therefore I need to implement a authentification & rights system. The idea so far: The server is responsible to ensure the user role and rights. ExtJS frontend has to change according to the permissions and role I use a card layout. The first tab is the login screen, the second the application In my controller I check if the user is logged in. If he has a valid identity I switch to tab 2. If not he