Click here to Skip to main content
15,867,921 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 6-Jan-15 2:48am
Comments
[no name] 6-Jan-15 1:51am    
can u use jquery..
Pradip R 6-Jan-15 2:41am    
Here is the great jQuery plugin that you can use to achieve your functionalities. Or else you can send ajax request for each operation and get the according data as per you filters.
Am Gayathri 6-Jan-15 4:09am    
IF i use ajax it will take time depends on data load.So i would like to load the data first then hide data based on range control data. what would be the best way?
Tejas Vaishnav 7-Jan-15 1:45am    
Is my solution helps you then please mark it as answer and don't forget to rate it.

1 solution

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/[^]
 
Share this answer
 
Comments
Am Gayathri 7-Jan-15 4:55am    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900