extjs

extjs with node.js backend?

╄→гoц情女王★ 提交于 2020-01-03 17:48:11
问题 Are there any projects, examples, tutorials, etc that would show ExtJS used with Node.js as the backend? I am looking specifically at multiple users collaborating in real-time, but anything with ExtJS and node together would be helpful. 回答1: Here is a example of ExtJS used with Node.js. There is another interesting project (server side javascript) called SilkJS. You should have a look at it as well. Here is an example of using SilkJs and ExtJS. Since Node.js is server side, you should not

ExtJS multiple listeners

半世苍凉 提交于 2020-01-03 15:56:07
问题 I have a property grid that I want to add multiple "afterrender" listeners to. Is it possible to add multiple listeners of the same type, or fire multiple functions within one listener? I've tried: afterrender: function(){...}, function(){...} but it does not fire both of the functions. 回答1: Just make multiple function calls within the function callback. Below shows a full example of this... Working Fiddle Ext.create('Ext.grid.property.Grid', { title: 'Properties Grid', width: 300, renderTo:

EXT js grid having one column of radio buttons

核能气质少年 提交于 2020-01-03 14:02:12
问题 I have an ext js grid like below: var grid = new Ext.grid.GridPanel({ columns: [ {header: 'Account Id',dataIndex:'accountId' }, {header: 'Account NUmber',dataIndex:'accountNumber' } ] }) Now I need to show Account Id column as a column of radio buttons. So from the grid user can select one Account Id and submit. When the user reloads the page, that account id should be preselected. I need some help on how to proceed on this. Do I need to write a renderer on Account Id column? Or is there an

Migration from ExtJS 3.0 to 4.0

不问归期 提交于 2020-01-03 13:06:29
问题 Previously in ext 3.0 we had Tree Panel built from XML response. For that we had custom class extending 'Ext.tree.TreeLoader' This TreeLoader was useful to build tree structure (parent/child nodes). While migrating to 4.0 found that TreeLoader class is missing. Is there any replacement to this class or any other way to build tree structure? I want to generate tree structure for following xml : Actually, I want to build tree structure from this XML : <?xml version='1.0' ?> <Root> <Folder>

Setting Focus to an iFrame in IE

♀尐吖头ヾ 提交于 2020-01-03 13:00:51
问题 There is a tree menu in my application and on click of the menu items, it loads a url in a iFrame. I like to set the focus in an element of the page loaded in the iFrame. I'm using this code, and it works perfectly in all the browsers except IE : var myIFrame = $("#iframeName"); myIFrame.focus(); myIFrame.contents().find('#inputName').focus(); I have tried all different options like using setTimeout, but no chance. After the page loads, when I hit the tab key, it goes to the second input,

extJs gmappanel inside extJs portal

北城余情 提交于 2020-01-03 09:16:16
问题 I wanted extJS Gmappanel inside the extJs portal. Below is the sample extJS portal. Inside "google" portlet, I need to have google map. How can we create extJs gmappanel inside the extJs portal? Ext.define('Ext.app.Portal', { extend: 'Ext.container.Viewport', uses: ['Ext.app.PortalPanel', 'Ext.app.PortalColumn', 'Ext.app.GridPortlet', 'Ext.app.ChartPortlet'], getTools: function() { return [{ xtype: 'tool', type: 'gear', handler: function(e, target, panelHeader, tool) { var portlet =

Add accept=“image/*” attribute to input field in ExtJs

蓝咒 提交于 2020-01-03 08:55:08
问题 I want to add client side validation for file upload using HTML5 "accept" attribute and ExtJs "inputAttrTpl" config. My ExtJs code is following (ExtJs 4.1): { xtype : 'filefield', action : 'upload', name : 'file', inputAttrTpl: 'accept="image/*"', hideLabel : true, buttonOnly : true, anchor : '100%', buttonText : 'Upload img...', margin: 5 } But when I am checking file field in firebug, it doesn't contain "accept" attribute. Can you suggest some solutions for this issue? Thanks for your

override Extjs Timefield to show custom max value 23:59

纵然是瞬间 提交于 2020-01-03 05:32:06
问题 I need your help with overriding an ExtJs Time field to show one custom value, 23:59. I tried to override the createStore function, but my time picker still has the standard values. What could be the issue? Ext.override(Ext.picker.Time, { createStore: function() { var me = this, utilDate = Ext.Date, times = [], min = me.absMin, max = me.absMax; while (min <= max) { times.push({ disp: utilDate.dateFormat(min, me.format), date: min }); min = utilDate.add(min, 'mi', me.increment); } var end =

Extjs date column format

为君一笑 提交于 2020-01-03 03:26:47
问题 i have date column with datefield editor. The problem is that while im editing column it displays the normal value for example 2013-02-05 , but when close editing it displays something like Sat Jul 12 2014 00:00:00 GMT+0300 (FLE Standard Time) My code: { xtype : 'datecolumn', dataIndex : 'depreciationStartPeriod', header : 'Depreciation start period', sortable : true, id : 'depreciationStartPeriod', width : 134, editor : { xtype : 'datefield', format: 'Y-m-d H:i:s' } } store field: { name :

In ExtJs 6.2, a column that contains an item does not take into account its flex property, is there a workaround?

让人想犯罪 __ 提交于 2020-01-03 03:24:32
问题 In ExtJs 6.2, there is a bug described here in the Sencha Forum. Since 6.2+ Ext.grid.Panel ignores flex when using column items. Steps to reproduce the problem: Create a grid in fiddle with 6.2+ Add columns without items and flex:1 klick run in fiddle and it looks just fine Add a item to the column with flex:1 klick again run in fiddle an flex wil get ignored! The result that was expected: I would expect the column to flex. The result that occurs instead: The column will render in the minimum