在jQuery DataTables中隐藏列时的性能问题 [英] Performance issues when hiding columns in jQuery DataTables

查看:125
本文介绍了在jQuery DataTables中隐藏列时的性能问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用DataTable.column(index).visible(false)方法来隐藏应用程序中的列.但是,只有几百行,几乎要花5秒钟才能隐藏几列.有人知道是否有可能加快速度吗?

I'm using the DataTable.column(index).visible(false) method to hide columns in my application. However with a few hundred rows it takes almost 5 seconds hiding a couple of columns. Anyone know if it is possible to speed it up?

推荐答案

也许您可以尝试设置 http://datatables.net/reference/option/autoWidth 设置为false?

Maybe you could try setting http://datatables.net/reference/option/autoWidth to false?

这篇关于在jQuery DataTables中隐藏列时的性能问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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