Questions tagged [extjs-stores]

The ExtJS Store class encapsulates a client side cache of Model objects.

79 questions
19
votes
6 answers

How to add an empty item to ExtJS combobox?

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…
Đinh Hồng Châu
  • 5,300
  • 15
  • 53
  • 90
10
votes
1 answer

What is the AngularJS equivalent to Backbone's Collections?

Is there an equivalent to Backbone's Collection or Ext JS's Store in Angular JS? I'm learning about $resource, but not quite getting this aspect. Controller // This is the "collection" I'm interested in. $scope.foos = []; // Foo is a…
9
votes
3 answers

Fastest way to clear filter from ExtJs store when filter is applied by using filterBy()

I am using ExtJS 4.1. I am using stores's clearFilter() to remove the filter from the store. I am applying filter to the store by using filterBy method. I am filtering all the records where name is not Ronaldo. After clearing the filter, I load a…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
8
votes
3 answers

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

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,…
Lorenz Meyer
  • 19,166
  • 22
  • 75
  • 121
7
votes
3 answers

Sorting one column based on another column in ExtJs 4.1 grid

I am using ExtJs 4.1 framework. I have a grid which shows only one column (Name). The grid is associated with a store which have two fields (Name and SortOrder). The field "name" in store is associated with Name column of the grid. I want to sort…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
6
votes
2 answers

How to wait until all stores are Sync in ExtJs?

I have a list of grids that can change their data in form by end-user. Finally, I want to sync all the grids by clicking the button, then an operation is performed. I wrote the code below: $.when.apply( Ext.ComponentQuery.query('grid') …
Hossein
  • 3,083
  • 3
  • 16
  • 33
6
votes
5 answers

Ext.data.Store's each() is ignoring filtered records

I am using Ext.data.Store's each(). But this method, when store is filtered, only loops over the filtered records. Do we have any other method or work around to loop over all the records of a store even when a filter is applied on the store. var…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
6
votes
1 answer

How to use scope in store load function in ExtJS

this.loadSmt = function(argPanel) { this.store1 = new Ext.data.JsonStore({ url : 'URL1', totalProperty : 'total', successProperty : 'success', root : 'root1', fields : [ …
vtokmak
  • 1,496
  • 6
  • 35
  • 66
5
votes
3 answers

How to reuse store in EXT JS 4 MVC application without multiple reloading?

I am working on extjs 4 MVC application. Application runs the Viewport, which contains tabpanel. Each tab has own controller and multiple views. See my sandboxs at http://wap7.ru/folio/ext-reuseable-store/TE.html I have one Store used several…
Lev Savranskiy
  • 422
  • 2
  • 7
  • 19
3
votes
1 answer

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

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:…
Lorenz Meyer
  • 19,166
  • 22
  • 75
  • 121
3
votes
4 answers

Store load canceled after 30 seconds

I've problem with store load. Extjs cancel load after 30 seconds. Is there some parameters or something else to increase store load time? Here is example of store: var store = Ext.create('Ext.data.Store', { model : 'store_model', …
Samir Maksimov
  • 105
  • 1
  • 2
  • 9
3
votes
1 answer

EXT JS 4: No reloading of stores

I have a TreeStore, which initially loads its data from a json file with success: Ext.define('MM.store.InventoryTree', { extend: 'Ext.data.TreeStore', requires: 'MM.model.InventoryTree', model:'MM.model.InventoryTree', proxy:…
taf
  • 71
  • 4
2
votes
1 answer

Ext JS: How to get sum of two different JSON store's values?

As you will notice belowe I'm fetching to two different stores through formulas and getting TOTALCOUNT integer values of those JSONs. How can I get sum of those two different stores? formulas: { firstStore: { bind: { …
Nuri Engin
  • 813
  • 10
  • 38
2
votes
1 answer

New records get an autogenerated id value. How to get 0 as a new id as in ExtJs 4?

In ExtJs 4, a new record in a store got 0 as an id, before it is synced to the server. In ExtJs 6, the id 'Mb.model.images.Image-1'. Ext.define('Mb.model.images.Image', { extend: 'Ext.data.Model', fields: [ {name: 'id', type:…
Lorenz Meyer
  • 19,166
  • 22
  • 75
  • 121
2
votes
3 answers

How to update a store with a form in ExtJS?

I have store and I add a new record with this code. First it adds the new record and then it synchronizes to the back-end. Ext.getStore('ilhan').add(Ext.getCmp('contacForm').getValues()); Ext.getStore('ilhan').sync({ success: function(){ …
ilhan
  • 8,700
  • 35
  • 117
  • 201
1
2 3 4 5 6