Unplanned
Last Updated: 27 Mar 2024 10:20 by ADMIN
Mohsin
Created on: 27 Mar 2024 09:40
Category: GridView
Type: Bug Report
0
RadGridView: RadMaskedEditBoxEditor picks the currency symbol from the Operating System Regional Settings in edit mode even though the CultureInfo is explicitly set

maskBoxColumn.FormatInfo = CultureInfo.CreateSpecificCulture("en-AE");

1 comment
ADMIN
Nadya | Tech Support Engineer
Posted on: 27 Mar 2024 10:20

Hello, Mohsin,

Thank you for reporting this. You can use the following workaround and explicitly set the editor's culture to be the same as the GridViewMaskBoxColumn:

private void RadGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
    RadMaskedEditBoxEditor editor = e.ActiveEditor as RadMaskedEditBoxEditor;
    if (editor != null)
    {
        editor.MaskTextBox.Culture = CultureInfo.CreateSpecificCulture("en-AE");
    }
}

I hope this helps. If you have other questions, please let me know. 

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