I am using radfilter with radlistview and Openaccess. I have connected radfilter and radlistview through FilterContainerID. I am using datasource property of radlistview like this
Private Sub lvProducts_NeedDataSource(sender As Object, e As Telerik.Web.UI.RadListViewNeedDataSourceEventArgs) Handles lvProducts.NeedDataSource
Dim dbContext As New familia.OpenAccess.EntitiesModel
If tvCategories.SelectedNode IsNot Nothing Then
If tvCategories.SelectedValue = 0 Then
lvProducts.DataSource = dbContext.Products
Else
lvProducts.DataSource = dbContext.Products.Where(Function(p) p.CategoryProducts.Any(Function(c) c.CategoryID = tvCategories.SelectedValue))
End If
End If
End Sub
radfilter is successfully applying filter to all field of my datasource except fields with Boolean data type. I have searched everywhere but couldnt find a solution. Please help.
Private Sub lvProducts_NeedDataSource(sender As Object, e As Telerik.Web.UI.RadListViewNeedDataSourceEventArgs) Handles lvProducts.NeedDataSource
Dim dbContext As New familia.OpenAccess.EntitiesModel
If tvCategories.SelectedNode IsNot Nothing Then
If tvCategories.SelectedValue = 0 Then
lvProducts.DataSource = dbContext.Products
Else
lvProducts.DataSource = dbContext.Products.Where(Function(p) p.CategoryProducts.Any(Function(c) c.CategoryID = tvCategories.SelectedValue))
End If
End If
End Sub
radfilter is successfully applying filter to all field of my datasource except fields with Boolean data type. I have searched everywhere but couldnt find a solution. Please help.