extjs-stores

rowedit grid with sync

落爺英雄遲暮 提交于 2019-12-24 10:14:01
问题 I try to implement a general rowediting grid like this example, with the difference that I would like to sync the changes with the server backend. Until now, I can add a new line with onRoweditAdd . Ext.define('Mb.view.base.RoweditListController', { extend: 'Ext.app.ViewController', alias: 'controller.roweditlist', onRoweditAdd: function(me){ var grid = me.up('panel'), edit = grid.editingPlugin, store = grid.getStore(), record = store.getModel().create({id: 0}); edit.cancelEdit() store.insert

Why doesn't a store declared in a ViewModel get loaded?

不问归期 提交于 2019-12-24 03:42:34
问题 This question is related to Trying to bind a store to a ViewModel, but is a different question. I'm declaring a store in a viewmodel like this: Ext.define('Mb.view.rma.DetailsModel', { extend: 'Ext.app.ViewModel', alias: 'viewmodel.rma-details', requires: ['Mb.model.rma.Detail'], data: { id: 0 }, stores:{ details: { //store: 'rma.Details', type: 'rmaDetails', // correction as suggested by @scebotari filters: [{ property: 'rma', value: '{id}' }], remoteFilter: true } } }); When I instantiate

Why doesn't a store declared in a ViewModel get loaded?

余生长醉 提交于 2019-12-24 03:42:22
问题 This question is related to Trying to bind a store to a ViewModel, but is a different question. I'm declaring a store in a viewmodel like this: Ext.define('Mb.view.rma.DetailsModel', { extend: 'Ext.app.ViewModel', alias: 'viewmodel.rma-details', requires: ['Mb.model.rma.Detail'], data: { id: 0 }, stores:{ details: { //store: 'rma.Details', type: 'rmaDetails', // correction as suggested by @scebotari filters: [{ property: 'rma', value: '{id}' }], remoteFilter: true } } }); When I instantiate

extjs - Store with autoload true should not load on application launch

我与影子孤独终老i 提交于 2019-12-12 07:56:43
问题 I have a grid linked to a store with autoLoad: true . The problem is that the store gets loaded on application launch, even if the view is created only later when accessed through a menu. I have referenced the store in Application.js and in the view, but I'm not instatiating explicitly neither the store nor the view. I don't know how to achieve that the store is loaded only when needed by the view. If I set autoLoad: true , the store gets loaded on application launch. If I set autoLoad: false

ExtJs - paging and buffering grid based on remote data WITHOUT remote paging and filtering

一笑奈何 提交于 2019-12-11 02:56:43
问题 In ExtJs, remote data can be easily displayed in a paged grid. But for this to happen, the server side must support paging. Furthermore, local sorting and filtering in a paged grid is not useful, because it only filters the elements of the current page. In order to get consistent results, remote filtering and sorting is required. For buffered stores in infinite scrolling grids the same applies. But this is not always the right solution. Especially when remote data retrieval takes some time,

How to add an empty item to ExtJS combobox?

你说的曾经没有我的故事 提交于 2019-11-29 03:12:41
I want to add and empty item (display value is blank, item height is kept as normal) to an Ext.form.ComboBox. I refered 2 links below to configure my combobox, but it still not display the empty item: http://www.ashlux.com/wordpress/2009/09/04/handling-empty-options-with-ext-js-combo-box/ http://www.sencha.com/forum/showthread.php?52340-How-to-add-a-quot-blank-quot-entry-to-a-ComboBox Here is my code: this.abcCombo = new Ext.form.ComboBox({ name : 'abcCombo', hiddenName : 'abcCombo-id', fieldLabel : "My Combobox", width : 250, editable : false, forceSelection : true, mode : 'local',

How to add an empty item to ExtJS combobox?

痞子三分冷 提交于 2019-11-27 17:43:26
问题 I want to add and empty item (display value is blank, item height is kept as normal) to an Ext.form.ComboBox. I refered 2 links below to configure my combobox, but it still not display the empty item: http://www.ashlux.com/wordpress/2009/09/04/handling-empty-options-with-ext-js-combo-box/ http://www.sencha.com/forum/showthread.php?52340-How-to-add-a-quot-blank-quot-entry-to-a-ComboBox Here is my code: this.abcCombo = new Ext.form.ComboBox({ name : 'abcCombo', hiddenName : 'abcCombo-id',