extjs4.2

How to export extjs grid data to excel?

一世执手 提交于 2019-12-10 03:47:03
问题 I have a grid with large number of records. I use filters to filter the data as required. But i want to export the filtered data to a excel sheet for further usage. I went through some articles available but they seem different and not compatible with latest 4.2 version. Please help me in achieving this in simple manner. Thanks much! 回答1: For extjs < 4 http://edspencer.net/2009/11/24/ext-ux-exporter-export-any-grid-to-excel-or-csv/ For extjs >= 4 http://www.sencha.com/forum/showthread.php

What is the ExtJs xtype for LiveSearchGridPanel

百般思念 提交于 2019-12-08 11:31:34
问题 I have been trying to include a LiveSearchGridPanel into a Panel along with a grid and a slider. I have been able to find the xtype for grid and slider but cannot find the xtype for LiveSearchGridPanel. getXType returns undefined and getXTypes is not helpful. Thanks 回答1: It is a UX component we have to include the path of the view file also in our app.js. Add below to include a ux component in your app : eg ux.Router Ext.Loader.setConfig({ enabled: true, paths: { 'Ext.ux.Router': 'lib/Router

Remove and Add Gridpanel again fail with CheckboxModel in extjs4.1 and 4.2

ⅰ亾dé卋堺 提交于 2019-12-08 08:26:54
问题 I have a panel with layout: border , that look like http://jsfiddle.net/rpcbX/ When i click add button on west region I with removeAll from center region and add something again, in this example i add and remove gridpanel. But My gridpanel has CheckboxModel . And that can't remove after i add gridpanel again. Follow bellow step u will see bug. 1. Run my app and click add button 2. Click checkall butoon on gridpanel 3. Click add button again Now u will see the bug, the selection was selected

Ext.getCmp(id) or Ext.ComponentQuery.query(attribute)

痴心易碎 提交于 2019-12-08 05:53:35
问题 I am new to Extjs and using Extjs v4.2.0. To find an object I can use either Ext.getCmp(id) or Ext.ComponentQuery.query(attribute).Which one is better to use and faster? 回答1: The best is to avoid using any of this two directly. Ext.getCmp is especially considered bad "code smell". You should strive to organize your code in such a way that you don't need them. Component queries are elegant, but you should use them either from a parent container (thus reducing the research tree and allowing you

How to show label with line and display label outside in piechart in extjs4.1

梦想与她 提交于 2019-12-08 05:22:45
问题 can anybody tell How to show label with line and display label outside in extjs4.1.I want to display label outside of pie and show line to map the label eg / \ \ test test1 test2 回答1: You've got the display option of the label config, that you can set to 'outside'. As for the lines, you'll have to draw them yourself... Which would be a quite involved hack IMO. If you're interested in trying, that takes place in Ext.chart.Label#renderLabels(), and uses Ext.chart.series.Pie's onCreateLabel()

How to create custom SASS in ExtJS for compiling with Sencha CMD

╄→гoц情女王★ 提交于 2019-12-08 04:09:11
问题 I have my application built with ExtJS 4.2.1 My app structure was generated using Sencha Cmd v4.0.1.45. Im using some custom CSS in my app to give personalized style so my XTemplate items and also Im using AwesomeFont and FamFam Sprites for icons. This is my resources directory in my app sencha cmd structure: App.css is a custom CSS BoxSelect.css is other custom CSS chooser.css is other custom CSS famfamfam.css is the CSS that will handle the famfam.png image sprite font.css is the CSS that

How to show label with line and display label outside in piechart in extjs4.1

二次信任 提交于 2019-12-08 04:04:25
can anybody tell How to show label with line and display label outside in extjs4.1.I want to display label outside of pie and show line to map the label eg / \ \ test test1 test2 You've got the display option of the label config , that you can set to 'outside'. As for the lines, you'll have to draw them yourself... Which would be a quite involved hack IMO. If you're interested in trying, that takes place in Ext.chart.Label#renderLabels() , and uses Ext.chart.series.Pie 's onCreateLabel() and onPlaceLabel() methods. Don't forget to take your trigonometry with you before diving in there! 来源:

Extjs 4.2 buffered store sync data does not work

牧云@^-^@ 提交于 2019-12-07 22:58:28
问题 Here is the store code: Ext.define('NG.store.WhatsNews', { extend: 'NG.store.AbstractStore', model: 'NG.model.auxClasses.notifications.WhatsNew', alias: 'store.whatsnewstore', autoLoad:true, buffered: true, pageSize: 50, proxy: { type: 'rest', url: 'api/WhatsNew/' } }); Here is the model: Ext.define('NG.model.auxClasses.notifications.WhatsNew', { extend: 'Ext.data.Model', idProperty:'iD', fields: [ { name: 'iD', type: 'int' }, { name: 'createDate', type: 'date', dateFormat: 'c' }, { name:

how to attach onclick event to XTemplate element extjs?

可紊 提交于 2019-12-07 20:45:12
问题 I am very new to extjs. I want to call onclick event once I click on div, Below is the code. Please help, Thanks in advance. var resultTemplate = new Ext.XTemplate( '<tpl for=".">', '<div class="list-item" id={value}>', '<i class="folder-icon"> </i>', '{value}', '</div>', '</tpl>' ); Ext.define('abc.view.xyz', { layout: { type: 'border', padding: 5 }, extend: 'Ext.Panel', alias: 'widget.infraTab', id: 'infraTab', margin: '10 10 10 10', border: true, items: Ext.create('Ext.view.View', { store:

ExtJS 4.2.1 - add textfield to an XTemplate

心已入冬 提交于 2019-12-07 17:09:07
问题 I got a custom component in which i set the html with an xtemplate something like this Ext.apply(me, { html: mainTpl.apply() }); I want to add some textfields to my XTemplate too and i cant figure out how to do this. new Ext.XTemplate('<div Class="TopHeaderUserInfo"><div id="TopHeaderLanguageDiv" ><div Class="ActiveLanguageFlag" lang="{[ this.getLanguage() ]}" ></div>' + '<ul Class="LangSelectDropDown HeaderDropDown" style="position:absolute;"><li class="ListHeader">' + MR.locale