如何过滤掉 YUI Datatable 中以给定字符串结尾的列条目
目前,我正在处理一个包含数百个条目的 YUI 数据表。该表由四列组成,第一列 (ID) 为主键。我们想要做的是忽略 ID 以特定数字“结尾”的任何条目。源代码非常大而且丑陋,所以我不想发布代码片段,而是想发布一个相当高级的问题。
我看过几个 YUI 数据表示例,但没有一个示例说明了我想要做的事情,即过滤掉以给定字符串结尾的数据。你们中有人能够做到这一点吗?
Currently, I am working on a YUI datatable with hundreds of entries. The table consists of four columns, the first one (ID) being the primary key. What we want to do is to ignore any entries whose ID "ends with" a specific number. The source code is very big and ugly, so instead of posting code snippets, I wanted to post a rather high level question.
I've seen several YUI datatable samples, but none of them examplified what I want to do, namely filtering out data that ends with a given string. Has any of you been able to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想在将数据绑定到数据表之前过滤数据吗?您是否查看过数据源事件,例如 doBeforeCallback ?
Are you wanting to filter the data before it is bound to the datatable? Have you looked at the datasource events such as doBeforeCallback?