可以隐藏SlickGrid列而不将其从“列”列中删除阵列? [英] Possible to hide a SlickGrid column WITHOUT removing it from the "columns" array?

查看:120
本文介绍了可以隐藏SlickGrid列而不将其从“列”列中删除阵列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要隐藏一个列(它是每行唯一的ID列),但是我无法将其从columns数组中删除,因为当在Row上执行操作时,我需要在Row中使用该数据(选择,排序,等等)。

I'd like to hide a column (its an ID column that is unique for each row), but I cannot remove it from the "columns" array because I need that data in the Row when actions are performed on the Row (Selection, Sorting, ect).

在进行排序后,我需要抓住Rows将它们与以前的样式相匹配,我可以使用ID列执行此操作。我需要行中的数据,我只是不希望它显示。

After being sorted for example, I need to grab the Rows match them up to the previous styles that they had before, and I can do this with the ID column. I need the data in the row, I just don't want it to be displayed.

谢谢。

推荐答案

答案是否定的,但那是不是您正在寻找的答案:)

The answer is NO, but that is not the answer you are looking for :)

除了用于获取数据的列之外,它们与您的数据项之间没有硬链接。您无需在列中显示您的数据项上的ID。

Other than what columns are looking at to grab their data, there is no hard link between them and what your data items look like. You don't have to have a column visible to have an ID on your data item.

这篇关于可以隐藏SlickGrid列而不将其从“列”列中删除阵列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆