Need More Info
Last Updated: 31 Mar 2023 09:59 by ADMIN
Created on: 24 Mar 2023 13:52
Category: FilterView
Type: Bug Report
RadFilterView: ItemCreated event in FilterViewBooleanCategoryElement is never fired
This event works for FilterViewTextCategoryElement, but not for FilterViewBooleanCategoryElement.
Private Sub Filter_CategoryCreating(sender As Object, e As FilterViewCategoryCreatingEventArgs)
   AddHandler DirectCast(e.Category, FilterViewBooleanCategoryElement).ItemCreated, AddressOf BoolCategoryItemCreated
1 comment
Dess | Tech Support Engineer, Principal
Posted on: 31 Mar 2023 09:59

Hello, Armand,

I have made several tests with different scenarios to replicate the undesired behavior you are facing. The CategoryCreating event seems to be fired as expected for the  FilterViewBooleanCategoryElement:

Here is my sample code snippet for your reference:

    Private Sub RadForm1_Load(sender As Object, e As EventArgs) Handles MyBase.Load 

        Me.RadGridView1.DataSource = Me.ProductsBindingSource

        AddHandler Me.RadFilterView1.CategoryCreating, AddressOf RadFilterView1_CategoryCreating
        Me.RadFilterView1.AssociatedControl = Me.RadGridView1
    End Sub

    Private Sub RadFilterView1_CategoryCreating(sender As Object, e As Telerik.WinControls.UI.FilterView.FilterViewCategoryCreatingEventArgs)
        Console.WriteLine(e.Category.PropertyName & " " & e.Category.GetType().ToString())
    End Sub
I have attached my sample project. Please give it a try and see how it works on your end. Am I missing something? Could you please specify the exact steps how to reproduce the problem? Feel free to modify the project in a way to reproduce the experienced issue and get back to me with it so I can investigate the precise case. Thank you in advance. 

I am looking forward to your reply.

Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.