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

Radfilter with radlistview Boolean field Problem

3 Answers 68 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Zafar
Top achievements
Rank 1
Zafar asked on 03 Mar 2012, 11:42 AM
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.
           

3 Answers, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 08 Mar 2012, 08:01 AM
Hello Zafar,

I tried to replicate the issue which you described, but to no avail. Attached to this message, you will find the code which I used for testing. Note RadListView DataSource is a DataTable which does not alter the behavior of the RadFilter.

Please, take a look at it and let me know if there are any differences at your end, which I may be leaving out.

Regards,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Zafar
Top achievements
Rank 1
answered on 09 Mar 2012, 07:06 AM
Dear Sir,

I am afraid I failed to explain my problem. Radfilter is successfully setting the Radlistvew filter expression but radlistview is not applying it on boolean fields. please check the attached screens. In 3rd screen IsTodaysDeal is true for only two products but radlistview is not applying filter.  Please help
0
Antonio Stoilkov
Telerik team
answered on 13 Mar 2012, 10:50 AM
Hi Zafar,

I have updated the project trying to come as close as possible as your implementation based on the provided information but was not able to replicate the issue. In order to further investigate the issue and advise you with the best possible solution we will need a sample project which you could upload on a public URL and provide us the link.

Regards,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Filter
Asked by
Zafar
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Zafar
Top achievements
Rank 1
Share this question
or