记住列宽、位置和(in)可见

发布于 2025-01-01 07:40:10 字数 118 浏览 3 评论 0原文

又是一个关于extjs的问题。

我使用 EXT 4.0.2 并且有几个网格。如何存储列宽和位置的设置?每次我加载页面时,一切都会回到基本状态,这开始让我烦恼:)

谢谢,

托比

Once again a question about extjs.

I use EXT 4.0.2 and have a couple of grids. How can i store the settings for the column width and position? Everytime i load the page everything is back to basic and that starts to annoy me :)

Thanks,

Toby

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦境 2025-01-08 07:40:10

添加 有状态< /code>: true 网格配置语句。

为此,您还应该启用状态管理器:

Ext.state.Manager.setProvider(new Ext.state.CookieProvider({
    expires: new Date(new Date().getTime()+(1000*60*60*24*7)), //7 days from now
}));

Add stateful: true statement to grid's config.

For this to work you also should enable state manager:

Ext.state.Manager.setProvider(new Ext.state.CookieProvider({
    expires: new Date(new Date().getTime()+(1000*60*60*24*7)), //7 days from now
}));
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文