Store.toJson()

2009.11.26. 23:20 stack

Store teljes tartalma JSON alakban:

Ext.override(Ext.data.Store, {
    toJson: function () {
        var items = [];
        this.each(function (record) {
            items.push(Ext.encode(record.data));
        });
        return '[' + items.join(',') + ']';
    }
});

Szólj hozzá!

Címkék: store json override

A bejegyzés trackback címe:

http://extjs.blog.hu/api/trackback/id/tr341555256

Kommentek:

Nincsenek hozzászólások.

ExtJS blog, mi ez?

Az ExtJS egy JavaScript keretrendszer, melyet a blog írója elfogultan a legjobbnak tart, és ez a blog olyan apróságok gyűjteménye, melyek ExtJS használata közben felmerültek, eszébe jutottak...

Címkék

ajax (1) alignto (1) analytics (1) anchorto (1) array (6) auto (1) back button (1) beautifier (1) benchmark (1) button (1) capture (1) case sensitive (1) center (1) change (1) class (2) closure compiler (1) combobox (3) comment (1) contextmenu (2) core (1) count (1) css (8) dataview (1) date (1) datefield (1) dragdrop (1) easing (1) eclipse (1) element (1) eval (2) event (1) field (2) firefox extension (2) focus (2) function (1) google (2) grid (3) group contact (1) header (2) height (2) hidden (1) hirek (1) history (1) htaccess (1) https (1) icon (3) id (1) ie6 (1) iframe (2) image (1) indexof (1) jslint (1) jsmin (1) json (5) keymap (1) kipróbálom (2) label (1) layout (1) magyar (1) mask (1) math (1) maxlength (1) mysql (5) napi szívás (6) nem extjs (10) node (1) off (3) override (15) pagesize (1) pagining (1) panel (2) php (3) plugin (1) pozicionálás (2) preload (1) print (1) propertygrid (1) readonly (2) record (1) scale (1) shuffle (1) sort (2) sortable (1) store (2) string (4) sum (1) tabchange (1) tabpanel (1) template (1) textfield (1) textitem (1) timer (1) toolbar (5) tools (1) total count (1) tree (1) treenode (1) truncate (1) ucfirst (1) undefined (1) unique (1) urlencode (1) utf8 (1) viewer (1) viewport (2) window (1) zindex (1)