在flex中对高级数据网格列进行排序
我预先有四列数据网格,如公司、联系人、产品和日期。我想按产品排序,然后按公司排序,然后按日期排序。如何在 Advance Datagrid 中执行此操作?
I have four columns in advance datagrid like company, contact_person, product and date. I want to sort by product followed by company and followed by date. How can I do this in Advance Datagrid?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过按照您描述的方案的相反顺序对
AdvancedDataGrid
的dataProvider
进行排序来实现此目的。这将是一系列排序操作。首先按日期排序,然后按产品排序,然后按联系人排序,最后按公司排序。但是,如果您的AdvancedDataGrid
具有可排序的列,则用户交互可能会立即将其搞乱。You can do a version of this by sorting your
AdvancedDataGrid
'sdataProvider
in reverse order of the scheme you describe. It will be a series of sort operations. First sort by date, then product, then contact-person, then finally sorting on company. If yourAdvancedDataGrid
has sortable columns, however, user interaction could immediately mess this up.