如何在Asp.Net中过滤没有回发的值? [英] How Do I Filter The Values Without Postback In Asp.Net ?

查看:74
本文介绍了如何在Asp.Net中过滤没有回发的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在没有回发的情况下过滤这些值在asp.net中?

我有一个网格视图,其中包含我页面中的一些搜索结果。我想过滤这些值。

假设我的页面中有范围控制,并且我的网格中有一个列价。如果范围控制值介于1到100之间,则网格应仅显示价格范围为1到100的项目。如果用户将价格范围更改为1到200网格应立即显示范围为1到200的项目,不会有任何回发。怎么做?



希望问题很明确如果问题不明确请告诉我。

解决方案

如果您需要在不花费大量时间的情况下即时过滤数据,则需要使用客户端脚本编写客户端网格构建。



所以你可以使用jquery的任何第三方插件来构建你想要的网格,市场上有几个插件可以根据你的要求选择其中任何一个,这里有一些示例插件....



https://datatables.net/ [ ^ ]



http://paramquery.com/ [ ^ ]

How do i filter the values without post back in asp.net ?
I have a grid view which contains some search result in my page.I wanna filter those values.
Say i have range control in my page and one column price in my grid.If the range control values are between 1 to 100 then grid should show only items with price range 1 to 100. If the user change the price range to 1 to 200 grid should show items with range 1 to 200 immediately without any post back. How to do this?

Hope question is clear please let me know if the question is not clear.

解决方案

If you need to filter your data on the fly with out taking much time, the you need to go with client side grid build using client side scripting.

So you can use any third party Plugin of jquery to build grid as you wish, there are several plugin available in the market with different functionality chose any of it as per your requirement, here are some sample plugins....

https://datatables.net/[^]
Or
http://paramquery.com/[^]


这篇关于如何在Asp.Net中过滤没有回发的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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