Question

I trying to update code from extjs2 to extjs4, but I have an error and something wrong with grid.

var grid = new App.grid.GridPanel({
    store: store,
    columns: gridColumns,
    frame: false,
  //autoExpandColumn: 'name',
    autoHeight: true,
    loadMask: true,
    bbar: pagingBar,
    viewConfig: {
        stripeRows: true,
        scrollOffset: 2,
        grid: {
            isTree: false
        }
    }
});

I had a problem with 'isTree' property before, so, I added this property that would move on, but now, Google Chrome return error in ext-all.debug.js 102947 line::

 me.selModel.view = me;

No correct solution

OTHER TIPS

I am pretty sure you should not set grid property in your vieConfig although its difficult to tell whats happening because you are extending your own class not the default grid panel. There is no problem with isTree property typically so get rid of unnecessary configs - its how you get yourself in trouble :)

If you just follow along from an example you'll see the config lines are minimal. And I snuggest you do the same.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top