Completed
Last Updated: 18 Jul 2023 14:26 by ADMIN
Release R2 2023 SP1
Safae
Created on: 23 Jun 2023 07:51
Category: DataFilter
Type: Bug Report
0
RadGridView: An error message appears, while typing in a textbox editor of the composite filter dialog, and enter key is pressed

The error message appears when opening the custom option from the filter icon in RadGridView. 

The error message should not appear as there is a text in the textbox. When the enter key is pressed, the textbox value is still not committed which leads to this error. As a workaround, we can create a custom CompositeDataFilterForm override the ProcessCmdKey where we can handle this case.

public class MyCompositeDataFilterForm : CompositeDataFilterForm
{
    protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
    {
        if(keyData == Keys.Enter)
        {
            this.Controls[2] as RadButton).Focus();
             (this.Controls[2] as RadButton).PerformClick();
        }
        return base.ProcessCmdKey(ref msg, keyData);
    }
}

private void RadGridView1_CreateCompositeFilterDialog(object sender, GridViewCreateCompositeFilterDialogEventArgs e)
{
    var newForm = new MyCompositeDataFilterForm();
    e.Dialog = newForm;
}  

 

 

1 comment
ADMIN
Dinko | Tech Support Engineer
Posted on: 23 Jun 2023 07:59

Hello Safae,

Thank you 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.