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

Filter grid with toolbar items

1 Answer 22 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 2
Guss asked on 17 May 2008, 09:44 AM
How will one impliment this senario:

toolbar contain the following items:
Text="Severity 1" Value="1" Group="One"
Text="Severity 2" Value="2" Group="Two"
Text="Severity 3" Value="3" Group="Three"

Grid is populated from a datasource:
Select IssueNumber, IssueName, Severity FROM tableIssues

on initial load the grid has severity 1,2 and 3 issues:
meaning button 1, button 2 and button 3 will be checked!

Now for the desired behaviour:
if the person click button 1, the grid will filter and only show Severity 2 and 3 issues (because Sev 1 button was unchecked)
if the person click button 3, the grid will filter Severity 2 only (because 1 and 3 is off)
etc..... Basically the grid will be filtered based on the state of the 3 buttons. The buttons value will be used in the filter.

Button 1 = checked
Button 2 = unchecked
Button 3 = checked
.....this will filter and show Severity 1 and Seveirty 3 issues.

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 19 May 2008, 10:56 AM
Hello Guss,

You can consider, in this case, manipulating the filter expression directly. To see more information on this option, please refer to the following article, which contains more details on how the filter expression is constructed.
I hope this information helps.

the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Asked by
Top achievements
Rank 2
Answers by
Telerik team
Share this question