Radfilter with radlistview Boolean field Problem

4 posts, 0 answers
  1. Zafar
    Zafar avatar
    5 posts
    Member since:
    Feb 2012

    Posted 03 Mar 2012 Link to this post

    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.
               
  2. Antonio Stoilkov
    Admin
    Antonio Stoilkov avatar
    530 posts

    Posted 08 Mar 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Zafar
    Zafar avatar
    5 posts
    Member since:
    Feb 2012

    Posted 09 Mar 2012 Link to this post

    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
  5. Antonio Stoilkov
    Admin
    Antonio Stoilkov avatar
    530 posts

    Posted 13 Mar 2012 Link to this post

    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.
Back to Top