extjs

Use ExtJs and JQuery together in one application?

試著忘記壹切 提交于 2020-01-14 12:59:49
问题 we have a big ExtJS (still ExtJs 2) application, which provides windows explorer like functionality on a Java EE server. We now evaluate implementing a new functionality; we could base this functionality on a jQuery plug in. Is it recommended to use jQuery and ExtJs in one application? Or will I have to deal with side effects occurring? 回答1: You will not have to deal with any side effect. The only problems I ever ran into when I did this is if I tried to operate on elements that Extjs relied

ExtJS DateFormat Issue

混江龙づ霸主 提交于 2020-01-14 10:46:31
问题 I haven't found an existing question on this exact problem (there were several that were similar but did not help). I have a GridPanel with exam results, including when the exam was complete. The date returned from the SQL server is formatted like ' yyyy-mm-dd hh:mm:ss.uuu ' (2011-04-15 19:45:13.197). My problem is that even though the time is 19:45, it always displays as 7:45 AM. The dateformatter I am using in the datastore is ' Y-m-d H:i:s ' and ' F j, Y, g:i A ' in the column model. I

ExtJS DateFormat Issue

时间秒杀一切 提交于 2020-01-14 10:46:05
问题 I haven't found an existing question on this exact problem (there were several that were similar but did not help). I have a GridPanel with exam results, including when the exam was complete. The date returned from the SQL server is formatted like ' yyyy-mm-dd hh:mm:ss.uuu ' (2011-04-15 19:45:13.197). My problem is that even though the time is 19:45, it always displays as 7:45 AM. The dateformatter I am using in the datastore is ' Y-m-d H:i:s ' and ' F j, Y, g:i A ' in the column model. I

How to fires event after Drag & Drop on TreePanel

蓝咒 提交于 2020-01-14 10:13:17
问题 How can I use Ext.tree.ViewDDPlugin's events? I have a TreePanel that uses DDPplugin, but I'd like to know how to listen to the drop event. This is what my code looks like: var monPretree = Ext.create('Ext.tree.Panel',{ id : 'treepanel', title : 'TITRE', //width : 800, //height : 600, width : 500, enableDD: true, useArrows : true, viewConfig : { plugins : { ptype: 'treeviewdragdrop', appendOnly: true, listeners: { drop: function (node, data, overModel, dropPosition) { alert('CHANGE'); },

Uncaught Error: [Ext.createByAlias] Cannot create an instance of unrecognized alias: widget

試著忘記壹切 提交于 2020-01-14 07:32:49
问题 Here is a simple view that i want to instantiate : Ext.define('myapp.view.Home',{ extend 'Ext.Panel', xtype : 'testpanel' , config: { title:'home', iconCls:'home', cls : 'home', html: [ '<h1> Hello Guys </h1>', '<p> some text goes here </p>' ].join("") } }); i have added the view to my controller as follows : Ext.define('myapp.controller.Main', { extend : 'Ext.app.Controller', views : ['Home'], ... } i have used the xtype in my application as follows: items:[{ xtype : 'testpanel' }, Still I

Uncaught Error: [Ext.createByAlias] Cannot create an instance of unrecognized alias: widget

时光毁灭记忆、已成空白 提交于 2020-01-14 07:30:10
问题 Here is a simple view that i want to instantiate : Ext.define('myapp.view.Home',{ extend 'Ext.Panel', xtype : 'testpanel' , config: { title:'home', iconCls:'home', cls : 'home', html: [ '<h1> Hello Guys </h1>', '<p> some text goes here </p>' ].join("") } }); i have added the view to my controller as follows : Ext.define('myapp.controller.Main', { extend : 'Ext.app.Controller', views : ['Home'], ... } i have used the xtype in my application as follows: items:[{ xtype : 'testpanel' }, Still I

vertical scrollbar in ExtJS GridPanel

半世苍凉 提交于 2020-01-14 07:15:15
问题 I'm working on a project where I have a single GridPanel on a page. The panel can display any number of rows and I have the autoHeight property set, which causes the GridPanel to expand to fit the number of rows. I now want a horizontal scrollbar because on some resolutions not all columns get displayed (and I cannot reduce the number of columns). If I set the autoHeight I have no horizontal scrollbar, if I do not set it and set a fixed height I have a horizontal scrollbar but the GridPanel

Error: Failed to execute 'dispatchEvent' on 'EventTarget'

纵饮孤独 提交于 2020-01-14 06:50:10
问题 Some time ago I experienced a problem where scrolling on touch devices didn't work anymore when my ExtJS 5 App was embedded in an IFrame (see this thread). I've solved this by overriding some stuff from the Ext framework (see the solution). One step of the solution was to dispatch a touchmove event to the document itself (the framework prevents default handling of this event): // ... touchmove: function(e) { window.document.dispatchEvent(e.event); } // ... Even though this solution basically

phoneGap camera and sencha touch view

点点圈 提交于 2020-01-14 06:18:10
问题 I have to combine the phoneGap camera api with sencha touch. I have created a view CameraView and a controller Camera , but I don't know how to display the image captured by the camera on my view. // JavaScript Document LoginForm.views.CameraView = Ext.extend(Ext.form.FormPanel, { id:'CameraView', title: "CameraView", html:'<img height=200 width=200 id="myImage"/>', initComponent: function() { Ext.apply(this, { bodyStyle:'background-color:#fff;padding: 10px', dockedItems: [{ dock:'bottom',

ExtJS 4.1.0 grid performance issue

依然范特西╮ 提交于 2020-01-14 03:09:19
问题 I am using an ExtJS grid with 50 columns and more than 1000 records. I am facing performance issues while scrolling vertically/horizontally and for cell editing. Is it possible to get smooth performance without pagination for this size of data, or is pagination the only solution? 回答1: You should use infinite scolling. This allows you to display your table with 1000 records, while they are not created in the dom, so they are not slowing down your browser. Look at this example in the docs. You