在大型记录上,排序不起作用 [英] On Large Records sorting doesn't work

查看:59
本文介绍了在大型记录上,排序不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我已在我的一个网格中应用排序,在该网格中我显示有库存,但是当网格中的记录达到数千时,在单击已在网格中应用排序的标题时,排序停止工作.

任何人都可以了解一下为什么会发生这种情况吗?

谢谢

Varun Sareen

Dear Friends,

I have applied sorting on one of my grid where i am displaying the stock availability but as the records in the grid reaches thousand the sorting stops working on the click of the headers on which i have applied sorting in the grid.

Can anyone throw some light on it why this is happening?

Thanks

Varun Sareen

推荐答案

为什么您要尝试显示1000条或更多记录?您是否知道用户导航会有多尴尬? 哦,等一下我检查库存":向下翻页,向下翻页,向下翻页...重复进行,直到客户感到无聊并去其他地方为止.

别.显示一页约二十个项目,让它们搜索和过滤.但是不要指望正常的人会浏览大量的列表.
Why the heck are you trying to display 1000 records or more anyway? Do you have any idea how awkward that would be for a user to navigate? "Oh, hold on a moment while I check the stock": page down, page down, page down...repeat until the customer gets bored and goes elsewhere.

Don''t. Display a page of twenty or so items, let them search and filter. But don''t expect normal human beings to look through massive lists.


排序的工作是,要么有成千上万的记录,要么根据记录的大小花费时间.
在处理进行之前,您可以显示诸如"Please Wait ..."之类的消息,或者连接超时,因此您可以使用sql server增加命令时间.

希望对您有帮助. :)
Sorting works, either there are thousands of records, it takes time according to size of record.
till the processing is going on you can show message like "Please Wait..." or may be connection time out so you can increase the command time with the sql server.

Hope it''ll help you. :)


使用分页.不要一次显示所有Recod.分页将减少您的网页负载,提高性能.并提高排序速度.
Use paging. Don''t display all recods at a time. Paging will reduce your webpage load, increase preformance. and gives you better speed while sorting.


这篇关于在大型记录上,排序不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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