ExtJS Grid Reconfigure打破了gridfilters插件

时间:2015-06-15 20:17:49

标签: filter grid store extjs5

我使用Ext版本" 5.0.0.970"。我有一个grid.reconfigure函数用于使用gridfilters插件的网格。 没有重新配置,插件工作正常,但有Reconfgiure,有几个错误。 我修复了Filter.js以使用

private List<Ball> balls = new List<Ball>(); // Style Note:  Don't do this, initialize in the constructor.  I know it's legal, but it can cause issues with some code analysis tools.

private void pbField_Paint(object sender, PaintEventArgs e)
{
    if (b != null)
    {
        foreach(Ball b in balls)
        {
            b.Paint(e.Graphics);
        }
    }
}

private void pbField_MouseClick(object sender, MouseEventArgs e)
{           
    int width = 10;
    b = new Ball(new Point(e.X - width / 2, e.Y - width / 2), width);
    balls.Add(b);
    Refresh();
}

而不是

me.store.destroy(); 

因为那是一个错误。 https://www.sencha.com/forum/showthread.php?283793-Grid-reconfigure-not-working

但是现在,我收到了Collection.js的新错误

 me.store.destroyStore(); 

https://www.sencha.com/forum/showthread.php?289098-Problem-with-gridfilters-plugin&p=1104449

0 个答案:

没有答案