Results 1 to 2 of 2

Thread: extjs 4.2 tree grid not expanding

  1. #1
    Sencha User
    Join Date
    Jan 2014
    Posts
    45
    Answers
    2

    Default extjs 4.2 tree grid not expanding

    I've migrated from extjs 4.1 to 4.2 and it does modified a lot of problems, but in my app i have a tree, and it doesnt work when i click the expand button, it doesnt call an ajax, (its an mvc and every time i expand my node it has to call an ajax)
    In 4.1 it was working ok, now it doesnt do anything... My store:
    Code:
    Ext.define('IE.store.seguimiento.packageTracking', {
        extend: 'IE.store.seguimiento.treeStoreO',
        alias: 'store.PackageTrackingGrid',
        storeId: 'PackageTrackingGrid',
        model: 'packageTrackingM',
        root: {
            text: '',
            draggable: false, // disable root node dragging      
            attributes: {},
            clearOnLoad: true,
            clearRemovedOnLoad: true,
            autoLoad: false,
            expanded: true,
            children: []
        },
        proxy: {
            type: 'ajax',
            api: {
                read: 'packageTracking/findPackages'
            },
            reader: {
                type: 'json',
                totalProperty: 'totalProperty'
            },
            autoload: false,
            autoSync: true
        },
        listeners: {
            beforeload: function (store, operation, eOpts) {
                var kode_jabatan = operation.node.get("folioPaquete");
                operation.params.packageId = kode_jabatan;
            }
        }
    });
    Last edited by Gary Schlosberg; 28 Mar 2014 at 9:36 AM. Reason: jsbeautify code

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    To which version of ExtJS are you upgrading (4.2.0, 4.2.1, 4.2.2)? Can you post the tree code?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •