Unplanned
Last Updated: 12 Nov 2019 14:54 by ADMIN
Josué
Created on: 27 Jun 2019 07:45
Category: GridView
Type: Bug Report
1
RadGridView: filtering doesn't work for a GridViewMaskBoxColumn with numeric mask

Please refer to the attached gif file. You will notice that for the GridViewMaskBoxColumn  with numeric mask the filtering doesn't work. For the other columns each key stroke filters the grid rows.

Workaround: either use a GridViewDecimalColumn or change the default editor for the GridViewMaskBoxColumn :


            this.radGridView1.EditorRequired += radGridView1_EditorRequired; 

        private void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
        {
            if (this.radGridView1.CurrentColumn.HeaderText == "MaskBoxColumn")
            {
                GridSpinEditor spinEditor = new GridSpinEditor();
                RadSpinEditorElement element = spinEditor.EditorElement as RadSpinEditorElement;
                element.ShowUpDownButtons = false;
                e.Editor = spinEditor;
            }
        }

 

 

1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 27 Jun 2019 09:40
Hello, JosuĂ©,

I would like to follow up with further information. If you add a GridViewMaskBoxColumn  programmatically and apply a numeric mask, make sure that you specify the DataType of the column which should be the same type as the type of the column from the DataBoundItem, typeof(decimal) in your case.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.