extjs - Showing a limited subset of (or individual record from) a store in an Ext.DataView -
In Sankcha Touch, I often get an Ext. The DataAvE panel is required to have a sub-set record or a single record from the collection in the archive.
For example, I might have a model for My First thought that many shops were to be used. So I have a main store for a large list of all cars, and there is another store with one filter for my other player, however, updating a model from a store does not automatically update the records in other stores. Therefore, it defeats the purpose of using Datavway because updates are not updated everywhere in the page while updating. My Second attempt was to overwrite the A complete example can be found. However, although it is documented that I can override this method, the senscha touch does not don when you roam with the length of the array returned from the collected data If not, then it does not happen. So it was a dead end. How does others work to display / update multiple archives of the same record? UPDATE It was a bug that prevented the As written in the comment: I used the last seked touch Used with release and opened with Google Chrome all. The error has been fixed in the current version. (Version 1.1) car , in which it has app.stores.cars store, but I have listened to my listoffers In the DataView , I want to show a small subset of these items (say, just sports car ), while displaying large full sets in my list is also done by DataView . collection data method on the DataView, which was OK like I did later :
var card = new Ext.DataView ({store: app.stores.cars, collectData: function (records, startIndex) {// map above the record and which only we want var R = []; (var i = 0; i & lt; record.length; i ++) if (record [i] .data.is_sports_car) r.push (this .prepardata (record [i] .data, 0 , Record [i])); Return R;}, Tpl: New Ext.XTemplate (['& lt; tpl for = "." & Gt;', '& lt; div class = "car" & gt; { Name} & lt; / div & gt; ',' ']), The selectors: 'div.car'}); collectData from working as expected, in which Beng was fixed in 1.1.1.
Comments
Post a Comment