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

Customizing RadGridiview filtering silverlight

8 Answers 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
mshash1
Top achievements
Rank 1
mshash1 asked on 30 May 2011, 12:23 AM
I want to custimize filtering for RadGridview in silverlight...clear exisitng filter available by default and add three new filter. By Days 30,75 90 for Days column. And turn off filtering for two other colums...

8 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 30 May 2011, 06:57 AM
Hello Madhuri,

You may create a custom filtering control just as illustrated in our demos and this blog post as well. As for disabling the filtering for some of the columns, you may set the IsFilterable property of the column to "False" - this approach is demonstrated in the above-mentioned demo as well. 
Do let me know in case you need any further assistance.
 

Regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
mshash1
Top achievements
Rank 1
answered on 30 May 2011, 04:07 PM
Thanks..could u please give sample code for my case..
0
Maya
Telerik team
answered on 31 May 2011, 08:59 AM
Hi Madhuri,

I would gladly send you a sample project, but I would need slightly more details about your exact requirements - how exactly do you want to filter your data ? What will be the behavior that you expect ?

Regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
mshash1
Top achievements
Rank 1
answered on 31 May 2011, 08:54 PM
Based on a column showing Dates(Feb 08 2010)..Filtering needs only three options(30,75,90 days).. and display mathcing results in the GridView based on Filterselection(i.e. 30 days)
0
Maya
Telerik team
answered on 01 Jun 2011, 09:19 AM
Hi Madhuri,

Unfortunately, I am still not able to comprehend the way you want your filtering control to work. What will be the expected result when selecting 30 days for example - how this will be reflected on the Feb 08 2010 date. Do you expect to select dates in a particular time period depending on an initial value for example ?
Generally, the way our filtering architecture is working it as follows - it needs a Value, Member and LogicalOperator. Once an item has a property (corresponding to Member) equal/not equal (those values depend on the LogicalOperator) to the Value, this item will be filtered and displayed in the grid.  In case you need a more complex filtering logic, you may use a CompositeFilteringDescriptor. If your specification may be satisfied and accomplished with the above mentioned logic, there will be no problem to create the desired filtering control. Is it possible to meet your requirements based on this architecture ? 

Best wishes,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
mshash1
Top achievements
Rank 1
answered on 01 Jun 2011, 01:53 PM
So column "Days" contains Several dates..ranging from 2009 to Present..These days needs to be filtered by last 30 days/75 days from Today..So filtering checkbox for 30 days should return corrosponding match in the grid for all the days that are within last 30 days.
0
Maya
Telerik team
answered on 02 Jun 2011, 09:27 AM
Hello Madhuri,

I am sending you a sample project illustrating a possible approach for accomplishing the required filtering functionality. Please take a look at it and let me know whether it corresponds to your requirements.
 

Greetings,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
mshash1
Top achievements
Rank 1
answered on 06 Jun 2011, 02:14 PM
Hello Maya,
Cool..Thanks!!!
Tags
GridView
Asked by
mshash1
Top achievements
Rank 1
Answers by
Maya
Telerik team
mshash1
Top achievements
Rank 1
Share this question
or