This is a migrated thread and some comments may be shown as answers.

Custom Filter control

4 Answers 76 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chirag
Top achievements
Rank 1
Chirag asked on 09 Mar 2012, 12:24 PM
hi to all 

can any one give me a idea about filter control 

in telerik gridview their is a built in filter control on column 
i wan to customize that part  
No need of check box part rest of all are needed except check box records 
need event on "Filter" and "Clear Filter" button 
on that we get column name and entered value in filter text box

4 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 09 Mar 2012, 12:32 PM
Hello,

GridViewColumn.ShowDistinctFilter controls the visibility of the distinct values part.

Why do you need these events? What are you going to do when they happen? 

Greetings,
Ross
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Chirag
Top achievements
Rank 1
answered on 09 Mar 2012, 12:47 PM
hello Ross

in my case i have almost 1000K records in table so i will bind only 100 records and apply paging

if user clik on 3 page then get 201  to 300 records from database 

so  in this case  flter control works only 201 to 300 records but i wan to use this control for filter records base on that we filter a records and bind to grid 

suppose we filter on "Name" contains "chirag"   and get 300 records from db so pagercontrol.ItemCount = 300 and display first 100 records 

if he click on clear filter then again get top 100 records and pagercontrl.ItemCount= 1000K
0
Rossen Hristov
Telerik team
answered on 09 Mar 2012, 01:18 PM
Hello,

You can't do that with the stock filtering control.

In this case you should develop your own custom filtering control that will be able to do anything.

Regards,
Ross
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Chirag
Top achievements
Rank 1
answered on 09 Mar 2012, 02:34 PM
but in this demo it's working on data which is loaded 
but i wan to do sever trip and fetch the records is their any way to do this 
same concept i want to apply on shorting 

can you please  post any sample for this kind of feature 
Tags
GridView
Asked by
Chirag
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Chirag
Top achievements
Rank 1
Share this question
or