extjs5

What is the best way to create a list from the rows of a grid

与世无争的帅哥 提交于 2019-12-12 22:50:33
问题 In my app there are two drag and drop grid. To create a list, you drag rows from the first to the second grid. What is the best way to send this list of rows (second grid) for the server to then be displayed in another grid? I tried to sync and setDirty (true), but "Ext.data.Model # setDirty" is deprecated. var grid = this.lookupReference('gridRef'); var store = grid.getStore(); store.each(function(record){ record.setDirty(true); }); store.sync(); I tried, unsuccessfully: var grid = this

ExtJS 5 Pie Chart Not Rendering Using Remote Store

ぐ巨炮叔叔 提交于 2019-12-12 20:19:57
问题 I have a basic pie chart in ExtJS 5. The issue I am having is that the chart renders with a static JsonStore but won't render properly with a remote data.store? Here is my code: View (Chart) Ext.define('APP.view.core.graphs.Countytotals', { extend: 'Ext.Panel', alias: 'widget.countytotalchart', id: 'countyTotalsGraph', width: 650, initComponent: function() { var me = this; // Doesn't work? var countyStore = Ext.create('APP.store.Countytotalsgraph'); // Works var store = Ext.create('Ext.data

display values in XTemplate like textarea format

﹥>﹥吖頭↗ 提交于 2019-12-12 13:16:28
问题 I am using the plugin rowexpander (grid) with the following template. rowBodyTpl: new Ext.XTemplate('<div>'+ '<div>'+ '<b>Vegetables:</b>'+ '<ul><li>{vegetables_types}</li></ul>'+ '</div>'+ '</div>') Displays vegetables types. Items are sent to the server with a textarea field with each value separated by paragraph, creating a sort of list. potatos carrots pumpkins If I edit these values with a textarea, they are displayed in the textarea with the same format they were sent to the server

ExtJS: settings properties via a function on the Prototype: is it a safe pattern?

流过昼夜 提交于 2019-12-12 06:03:37
问题 I am working on a large ExtJS codebase written around ExtJS3 which has a lot of the following initComponent() pattern: Ext.define('PVE.form.BackupModeSelector', { extend: 'PVE.form.KVComboBox', alias: ['widget.pveBackupModeSelector'], initComponent: function() { var me = this; me.comboItems = [ ['snapshot', gettext('Snapshot')], ['suspend', gettext('Suspend')], ['stop', gettext('Stop')] ]; me.callParent(); } now I have started to set this properties directly on the prototype doing things like

Load grid row data into CodeMirror - get CodeMirror reference

﹥>﹥吖頭↗ 提交于 2019-12-12 03:59:36
问题 I am building a small extjs 5.1 app for personal use, designed to save examples of functions / methods used in my extjs apps. I've given the most important steps with the help of Navaneeth-Kesavan and Tarabass in this Post Now I'm struggling to load in CodeMirror editor the grid row data. After several unsuccessful attempts, I am trying to load the data into a hidden textarea and then get value of this textarea and paste the value (setValue) in CodeMirror. However, I am not able to get the

Secha ExtJs workspace and multiple pages(apps)

天大地大妈咪最大 提交于 2019-12-12 03:37:08
问题 I understand how to create and use multiple pages(or apps) within a workspace and build them. I am kind of confused about how do you make these multiple apps talk to each other ? lets say I have two apps in my workspace - App1 and App2. I can use routing and make apps talk to each other if the value is simple enough(like a user id). What If i have to send multiple id's or data from App1 to App2 ? 回答1: I think you have a few options available. URL Parameters that you parse when instantiating

Extjs5 Uncaught TypeError: Cannot read property 'metaData' of null

ぐ巨炮叔叔 提交于 2019-12-12 03:18:29
问题 Uncaught TypeError: Cannot read property 'metaData' of null I moved from Ext4 to 5 and this error came while trying to load data ftom a treestore.Any Ideas? 回答1: Ext.define(TreeSearchProxy, { extend: 'Ext.data.proxy.Ajax', alias: 'proxy.treesearchproxy', requires: [ TreeSearchResultsReader ], reader: 'treesearchreader', url : eaxies.util.Globals.ServletName, simpleSortMode : true, extraParams :{ ActionID: eaxies.util.Globals.ServletActions.RetrieveTreeSearchResults, query: null,

Extjs filtering is not Working properly

孤街浪徒 提交于 2019-12-12 03:14:33
问题 I am new to ExtJS. I have written a code for applying filtering in a Grid, but it is not working properly. Attaching the code snippet which I have written for applying filtering. Without filters, the grid is properly displayed at the panel. Ext.create('Ext.data.Store', { storeId: 'userDetailsStore', fields: ['username', 'firstname', 'lastname', 'role', 'activeuser'], data: {'items': [ {"username": 'USER1', "USER1-firstname": "firstname", "lastname": "USER1-lastname", "role": 'Admin',

posting form to iframe with extjs without rendering to bidy

≯℡__Kan透↙ 提交于 2019-12-12 01:07:49
问题 I am trying to post a form to an iframe. my issue is that my form gets posted just fine when I render the iframe to body. But the issue with this is that the container displays at the bottom of the page instead of the place where I want it to show. If I don't use the renderTo property, my form never gets posted to iframe at all. It almost seems like that in the case when I do not use renderTo property, i think my form does not even see the iframe. here is my code thats working for the form

CodeMirror editor within a panel

假装没事ソ 提交于 2019-12-12 00:29:31
问题 I am building a small extjs 5.1 app for personal use, designed to save examples of functions / methods used in my extjs apps. The most relevant part, has a grid with a list of functions, and a panel with a textarea that displays the contents of records (scripts). This works. Now I'm trying to replace the textarea field by CodeMirror editor for optimal scripts viewing and have syntax higlighter. I downloaded CodeMirror and put it in one the folder of my app with the name CodeMirror. In my app