Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
可在extjs中使用搜索和按钮的组合_Extjs_Datagrid_Factory - Fatal编程技术网

可在extjs中使用搜索和按钮的组合

可在extjs中使用搜索和按钮的组合,extjs,datagrid,factory,Extjs,Datagrid,Factory,我在一个窗体中使用了一个工厂函数(在windows中有称为使用按钮处理程序的网格)。 所以当我点击按钮打开一个网格,然后关闭它时,它工作正常, 但举例来说,在一种情况下: 如果我同时打开两个网格并关闭,然后尝试打开其他网格,则会加载以前的网格内容,但当我将存储设置为在按钮处理程序中加载时,特定的存储正在正确加载(我已使用fire bug进行了检查),但网格的内容不会更改 win.hide();//use to hide the window after using it closeAction

我在一个窗体中使用了一个工厂函数(在windows中有称为使用按钮处理程序的网格)。 所以当我点击按钮打开一个网格,然后关闭它时,它工作正常, 但举例来说,在一种情况下:

如果我同时打开两个网格并关闭,然后尝试打开其他网格,则会加载以前的网格内容,但当我将存储设置为在按钮处理程序中加载时,特定的存储正在正确加载(我已使用fire bug进行了检查),但网格的内容不会更改

 win.hide();//use to hide the window after using it
closeAction: 'hide',//in window config

我假设每个网格都使用GridPanel。您可以强制存储重新加载()。或者在窗口的关闭或隐藏事件中,您可以尝试清除存储区中的数据或重置gridpanel


您可能需要了解窗口对象的closeAction属性。这可以让您定义窗口上“关闭”按钮的行为。

我同意,我真的不理解您的问题。在你之前的问题中选择一些答案——至少其中一些答案可能是正确的,并且对你有帮助:)