extjs-grid

Ext JS, change grid column configs default values globally

一笑奈何 提交于 2020-01-15 08:59:07
问题 Ext.grid.column.Column class has following configs: draggable (Defaults to: true) sortable (Defaults to: true) menuDisabled (Defaults to: false) Is it possible to change default values of this configs globally for all grid columns in my application ? Any help appreciated. 回答1: yes, using Ext.override...... http://docs.sencha.com/extjs/5.1/5.1.0-apidocs/#!/api/Ext-method-override example... Ext.override(Ext.grid.column.Column, { draggable: true, sortable: true, menuDisabled: false }); 回答2:

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

How to have headers in first column instead of regular headers in top row?

两盒软妹~` 提交于 2020-01-05 15:25:34
问题 Generally, ExtJS renders the JSON into grid considering that properties go to top columns and their number is fixed. And the corresponding values are loaded in rows as records.Here number of rows may vary depending upon the records in Json. But there is slight change in my requirement. I want the properties to go to first row and corresponding columns. Here number of columns may vary depending upon the records in Json. I want to render something like depicted below : +-----------------+------

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

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

孤者浪人 提交于 2019-12-06 18:58:28
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 size. The thread says this be corrected in the nightly build, but ExtJs 6.2.1 is not yet available in