This is a migrated thread and some comments may be shown as answers.
FilterExpression
2 Answers 6 Views
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Veteran
Thomas asked on 30 Jun 2020, 07:28 AM

Hi!

I want to swap a RadGridView with a RadListView Control.

One issue I have at them moment is applying a filter to the RadListView.

Before (with RadGrid) I used:

Dim filterExpression As String
            filterExpression = "(ProductID = " & drp_Products.SelectedValue.ToString & ")"
            RadGrid_Search.MasterTableView.FilterExpression = filterExpression
            RadGrid_Search.MasterTableView.Rebind()

How can I do the same thing with RadListVIew?

Thanks, Tom

2 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 02 Jul 2020, 09:40 AM

Hello Tom,

 

You can use the following approach to achieve this requirement:

1. RadFilter Apply command:
- https://demos.telerik.com/aspnet-ajax/filter/examples/working-with-items-and-expressions/defaultcs.aspx
-
https://demos.telerik.com/aspnet-ajax/listview/examples/filteringwithradfilter/defaultcs.aspx

2. Using the RadListView1.FilterExpressions.Add(...) method:
https://demos.telerik.com/aspnet-ajax/listview/examples/filtering/defaultcs.aspx

I hope this will prove helpful.

 

Regards,
Eyup
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Thomas
Top achievements
Rank 1
Veteran
answered on 02 Jul 2020, 03:13 PM

Cheers Eyup, will try that.

Best regards, Tom

Asked by
Thomas
Top achievements
Rank 1
Veteran
Answers by
Eyup
Telerik team
Thomas
Top achievements
Rank 1
Veteran
Share this question
or