Completed
Last Updated: 25 Feb 2021 16:00 by ADMIN
Release 2021 R1 SP1
mmbm
Created on: 28 Jan 2021 09:42
Category: Grid
Type: Bug Report
1
ArgumentOutOfRangeException is thrown when using Persian (fa-IR) culture for the application

By changing the application's thread Culture to Persian (fa-IR) and the Grid's RenderMode to Lightweight, the application fails with "System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values."

 

To replicate the error

 

1. Change the application culture to Persian

protected void Page_Init(object sender, System.EventArgs e)
{
    var culture = new System.Globalization.CultureInfo("fa-IR");

    System.Threading.Thread.CurrentThread.CurrentCulture = culture;
    System.Threading.Thread.CurrentThread.CurrentUICulture = culture;
}

 

2. Change the RenderMode of the Grid to Lightweight

<telerik:RadGrid ID="RadGrid1" runat="server" RenderMode="Lightweight">
</telerik:RadGrid>

 

 

2 comments
mmbm
Posted on: 28 Jan 2021 13:28

Thank you for all of your effort!

 

Steve

ADMIN
Attila Antal
Posted on: 28 Jan 2021 10:05

Thank you for reporting this problem.

We have looked into the source code and found that there was a line where data was parsed in a way that was conflicting with the Culture of the application due to incorrect format.

During the investigation, we also found a way to fix it. The fix is currently under development and will be released with the upcoming service pack 2021 R1 SP1.

Regards,
Attila Antal
Progress Telerik