heya.. I know I saw this in use in one of the demos but can't find it any longer. I have a grid with the following
<telerik:radgrid id="Radgrid1" FilterExpression= "[column] = 'TextValue' ....>
I also have a checkbox control on the page to quicly just filter out the items that have a count greater than zero.
Is there a reason I can't build a filter expression using regualar t-sql?
code snippet.
<telerik:radgrid id="Radgrid1" FilterExpression= "[column] = 'TextValue' ....>
I also have a checkbox control on the page to quicly just filter out the items that have a count greater than zero.
Is there a reason I can't build a filter expression using regualar t-sql?
code snippet.
Protected Sub appfilter_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles appfilter.CheckedChanged |
RadGrid1.MasterTableView.FilterExpression = Nothing |
If appfilter.Checked = True Then |
RadGrid1.MasterTableView.FilterExpression = "(([Icount] > '0' and [ActivityStatus] = 'Vacant') or [Ecount] > '0')" ' consider the first two items or consider the third. |
RadGrid1.MasterTableView.Rebind() |
Else |
RadGrid1.MasterTableView.FilterExpression = "([ActivityStatus] = 'Vacant')" |
RadGrid1.MasterTableView.Rebind() |
End If |
End Sub |