Completed
Last Updated: 13 Mar 2024 08:49 by ADMIN
Release 2024.1.312
ASM
Created on: 24 Mar 2023 13:52
Category: FilterView
Type: Bug Report
0
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
Thanks
2 comments
ADMIN
Dinko | Tech Support Engineer
Posted on: 19 Feb 2024 09:34

Hello Armand,

We have closely reviewed your case and indeed in this case, the ItemCreated is never called for FilterViewBooleanCategoryElement. This behavior should be fixed. 

Your Telerik Points are updated for reporting this.

Regards,
Dinko | Tech Support Engineer
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.

ADMIN
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.ProductsTableAdapter.Fill(Me.NwindDataSet.Products)

        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.

Regards,
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.