I'm using Telerik controls for Silverlight Q1 2013,
For setting gridview's data format to my own culture info, I set CurrentThread.CurrentCulture to my culture and set GridView's IsLocalizationLanguageRespected = False.
After doing this, my application crash where form is showed.
I reproduced this error with this simple project.
On App.xaml.vb, set culture for current thread:
System.Threading.Thread.CurrentThread.CurrentCulture = New Globalization.CultureInfo("vi-VN")
System.Threading.Thread.CurrentThread.CurrentUICulture = New Globalization.CultureInfo("vi-VN")
On Home.xaml, set IsLocalizationLanguageRespected = False:
<
navigation:Page
x:Class
=
"TestLocalizationRespectGridView.Home"
xmlns:d
=
"http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc
=
"http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:navigation
=
"clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignWidth
=
"640"
d:DesignHeight
=
"480"
Style
=
"{StaticResource PageStyle}"
>
<
Grid
x:Name
=
"LayoutRoot"
>
<
telerik:RadGridView
AutoGenerateColumns
=
"False"
x:Name
=
"grd"
IsLocalizationLanguageRespected
=
"False"
IsReadOnly
=
"True"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding ID}"
HeaderTextAlignment
=
"Center"
TextAlignment
=
"Center"
Header
=
"ID"
Width
=
"100"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Name}"
HeaderTextAlignment
=
"Center"
Header
=
"Name"
Width
=
"200"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Value}"
DataFormatString
=
"{}{0:C}"
HeaderTextAlignment
=
"Center"
TextAlignment
=
"Right"
Header
=
"Value"
Width
=
"400"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Grid
>
</
navigation:Page
>
On Home.xaml.vb, set GridView's ItemsSource = list of object:
Imports System.Windows.Controls
Imports System.Windows.Navigation
''' <
summary
>
''' Home page for the application.
''' </
summary
>
Partial Public Class Home
Inherits Page
''' <
summary
>
''' Creates a new <
see
cref
=
"Home"
/> instance.
''' </
summary
>
Public Sub New()
InitializeComponent()
Me.Title = ApplicationStrings.HomePageTitle
Dim lstDemo As New List(Of ObjectDemo)
For i = 1 To 100
lstDemo.Add(New ObjectDemo(i, "Object " + i.ToString, 1000000 * i))
Next
grd.ItemsSource = lstDemo
End Sub
''' <
summary
>
''' Executes when the user navigates to this page.
''' </
summary
>
Protected Overloads Overrides Sub OnNavigatedTo(ByVal e As NavigationEventArgs)
End Sub
End Class
Public Class ObjectDemo
Public Property ID As Integer
Public Property Name As String
Public Property Value As Decimal
Public Sub New(id As Integer, name As String, value As Decimal)
Me.ID = id
Me.Name = name
Me.Value = value
End Sub
End Class
15 Answers, 1 is accepted
Thank you for reporting it. I will investigate the case and let you know once I have mo information on the topic.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I'm getting the AppCrash too, not in Visual Studio, but when the application is published.
We're using Win2008R2 IIS7.5.
The EventLog showed the following:
Faulting application name: iexplore.exe, version: 9.0.8112.16476, time stamp: 0x5126e7ac
Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec49b8f
Exception code: 0xc00000fd
Fault offset: 0x0002dede
Faulting process id: 0xcb4
Faulting application start time: 0x01ce44ea1da63f24
Faulting application path: C:\Program Files (x86)\Internet Explorer\iexplore.exe
Faulting module path: C:\Windows\SysWOW64\ntdll.dll
Are there any news about this?
Best regards,
Alex
The thing is that I was not able to reproduce the behavior on my side. Will it be possible for you to share a bit more details about your exact sceanrio ? Is there anything more specific that you do except for setting the property to false ? Could you take a look at the sample attached and let me know whether I am missing something and if you can get the same exception on it ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I used a SilverlightApplication Template with a hosted ASP-Web Page. Everything out of the box, I only added the code from my predecessor and deleted
<
compilation
debug
=
"true"
targetFramework
=
"4.5"
/>
<
httpRuntime
targetFramework
=
"4.5"
/>
from the Web.Config (only 4.0 on Server). Our Win2008R2 Server has an english OS, we're using german for the culture.
I tested your Silverlight code in my application, but it crashed too.
I hope this will help you.
Best regards,
Alex
Thank you a lot for providing more information. So, far I managed to reproduce the issue in desing time (which I have already resolved and the fix is available in the internal build coming later today) and when the application is seen directly through the html/ aspx page (not when it is run as separate Silverlight application). Is this the case you get the exception as well ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I only tested the behavior with the *.aspx site, there I got the exception. I didn't test it via html or silverlight only.
I'll test internal builds later the day and tell you my answers.
greets,
Alex
I can still reproduce the AppCrash with internal builds: 2013.1.507.1050.
greets,
Alex
The internal build contains fix for the issue with the designer that I have resolved. The one that still appears is that with the apsx page and I am still tracing the cause of the problem. Thank you a lot for your great cooperation.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I also face the problem. Library version 2013.1.520.1050.
I can confirm that the issue doesn't appear on my developer PC. But it's reproduced on all customer machines (WInXP+IE8, Win7+IE9/10, WinServer2008R2+IE9) - at least 5 PCs with different installed software were tested. I also 100% reproduce the issue on VMWare with WinXPSP3+IE8. I checked different releases of IE hotfixes, Silverlight versions with the same result: works fine on the developer PC, crashes on test and customer PCs. All of them have Russian OS.
The minimum code to reproduce includes just an empty grid with the flag set to False:
<Grid x:Name="LayoutRoot" Background="White">
<telerik:RadGridView IsLocalizationLanguageRespected="False"/>
</Grid>
Depending on IE version it may silently reload the page or show a message (crash in ntdll.dll - see attached pics)
I believe that you can't reproduce the issue because of your environment. Please try on a clean WinXP (non-English) with IE8, latest Silverlight (at 21.05.13, I even installed Developer version on the test box), .NET 4.
Thank you a lot for the additional information. I have logged the bug in our Public Issue Tracking System where you can follow the progress of the issue. Again thanks to all of you for the cooperation.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I believe I managed to resolve the issue. The fix will be available with the upcoming official release - Q2 2013. Please give a try and let me know in case you still have any troubles.
Thanks to all of you for the cooperation.
Maya
Telerik
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
The release is scheduled for the next week on 12 June.
Maya
Telerik
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I am really happy to see that the issue is not reproducible on your side any more. Please let me know in case you need any further assistance.
Maya
Telerik
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.