如何确定数据网格中的列是否已排序。

发布于 2024-09-24 16:55:06 字数 62 浏览 2 评论 0原文

我想单击 dojo 数据网格的标题并检索信息,例如是否已排序以及排序的方向、列索引和列名称。有没有人做过这个。

I would like to click on the header of a dojo data grid and retrieve information such as if it is sorted and what direction is it sorted in, the column index, and the column name. Has anyone done this.

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

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

发布评论

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

评论(1

千寻… 2024-10-01 16:55:06

查看dojox.grid.Datagrid 中的getSortProps 函数。调用此函数将返回一个 JSON,其中包含当前正在排序的字段以及方向。您可以通过调用 getSortIndex 函数来获取索引。不知道如何让这个名字从我的脑海中消失

Look at the getSortProps function in dojox.grid.Datagrid. Calling this function will return a JSON with the field that is being currently sorted and what direction. You can get the index by calling the getSortIndex function. Don't know how to get the name off the top of my head

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文