c# - 10,000 多条 html 记录可快速呈现

标签 c# asp.net html render

现在这将是一个非常荒谬的问题。但我能做什么,这是客户的要求。基本上,我们有一个网格(主从类型),最多可达 15,000 多行(有可能在几年内达到 30-50,000 行)。

我的客户不想要任何分页,也不想要裁剪任何数据。此外,他并没有完全使用最新的硬件,因此在浏览器上呈现是一个大问题。他想通过打印出来或在浏览器上浏览来查看所有内容。 (你们可能都认为这听起来很疯狂,而且确实如此)。

现在我想通过快速渲染 html 来解决这个问题。目前它是一个简单的 asp.net GridView ,没有分页。这实质上呈现了 HTML 表格。我认为我的选择是: - 使用 div 手动渲染 html(用于快速加载) - 将其导出为 pdf 或 excel(有没有无需借助第三方控件即可导出的方法?) - 给手指(给客户 :D j/k)

总而言之,在 html 上显示 10,000 多条数据记录的最佳方式是什么?

最佳答案

考虑使用“滚动条”plug-in for Datatables ..

As part of DataTables 1.8 release a new plug-in called "Scroller" was introduced as part of the download package. Scroller is an implementation of virtual scrolling for DataTables, which presents a vertically scrolling table, scrolling the full height of the table, but drawing only the rows which are necessary for the visible display, leading to a huge performance increase. This is quite an exciting plug-in for DataTables not only for the performance increase, but also because it effectively provide a new user interaction with the table, allowing full scrolling of very large data sets.

关于c# - 10,000 多条 html 记录可快速呈现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9783532/

相关文章:

c# - 如何计算 C#.net 中 oledbconnection 中的总行数

c# - 如何在用户登录但后来从数据库中删除时清除 session

c# - 如何在 C# 应用程序中使用 HTML5 地理定位

c# - ASP.NET Core 2 没有配置身份验证处理程序来处理方案

html - 浏览器是否保留 GET/POST 上具有相同名称的输入顺序?

html - 如何将文本字段文本锚定到右侧?

c# - 如何在 C#.NET GUI 应用程序中实现语法高亮和自动完成功能?

asp.net - MVC ASP.NET - 手动授权某人并通过表单例份验证保留授权

html - 使用 RoyalSlider 全屏时如何显示标题

c# - 服务器端 SignalR 连接在长时间正常运行后失败