I have a Silverlight DataTable (converted from XML) that I wish to bind to my RadGridView using ItemsSource. If I use the GetBindableData function of the Silverlight DataTable, it binds and displays but all my DataFormatString and sorting is behaving incorrectly: all my data seems to be treated as string. I was able to recreate the same behavior with the telerik sample project found here:
http://www.telerik.com/community/forums/silverlight/gridview/datamemberbinding-converter-broken.aspx
If I change the Item class to return string for each property, it breaks the DataFormatString (dollar amount formating doesn't show anymore) and DataType (causing the sorting is treated like string instead of decimal...example 5.99 appears last instead of before 10.99).
I'm wondering if this has to do with the fact that the Silverlight DataSet is converted from XML and all values (regardless of data type) are being set to string. But since my Silverlight DataTable has all the correct data types, shouldn't the RadGridView be able to convert to the correct type when the data is bound? Or is the GetBindableData() function causing a problem?
http://www.telerik.com/community/forums/silverlight/gridview/datamemberbinding-converter-broken.aspx
If I change the Item class to return string for each property, it breaks the DataFormatString (dollar amount formating doesn't show anymore) and DataType (causing the sorting is treated like string instead of decimal...example 5.99 appears last instead of before 10.99).
I'm wondering if this has to do with the fact that the Silverlight DataSet is converted from XML and all values (regardless of data type) are being set to string. But since my Silverlight DataTable has all the correct data types, shouldn't the RadGridView be able to convert to the correct type when the data is bound? Or is the GetBindableData() function causing a problem?