This question is locked. New answers and comments are not allowed.
Hi,
I am using a RadGridView to display measurement values, in an MVVM setup. I bind the grid to an observable collection. Users have an option of displaying the values in either metric or imperial units (default values are in metric units) by checking a checkbox - when checkbox value changes to true, a method in my viewmodel is called that iterates through all the items in the observable collection and converts the units to imperial (inches and pounds) and the radgrid displays the imperial units okay. When the user wants to edit an item in the grid, they double click the item and a popup window shows allowing them to edit. This is where my problem is, if the user changes to imperial units and double clicks an item to edit, all the values on the radgrid revert back to the original values (metric units). What should I do to avoid this? Or is it the behavior of the radgrid by default? I am using radcontrols for silverlight 5, C# and MVVM. Please help resolve this as I am delaying arelease for my clients.
NOTE: Stepping through my code I can see that the observable collection has only the imperial values, but radgrid will show original/metric values.
Thank you.
Francis.
I am using a RadGridView to display measurement values, in an MVVM setup. I bind the grid to an observable collection. Users have an option of displaying the values in either metric or imperial units (default values are in metric units) by checking a checkbox - when checkbox value changes to true, a method in my viewmodel is called that iterates through all the items in the observable collection and converts the units to imperial (inches and pounds) and the radgrid displays the imperial units okay. When the user wants to edit an item in the grid, they double click the item and a popup window shows allowing them to edit. This is where my problem is, if the user changes to imperial units and double clicks an item to edit, all the values on the radgrid revert back to the original values (metric units). What should I do to avoid this? Or is it the behavior of the radgrid by default? I am using radcontrols for silverlight 5, C# and MVVM. Please help resolve this as I am delaying arelease for my clients.
NOTE: Stepping through my code I can see that the observable collection has only the imperial values, but radgrid will show original/metric values.
Thank you.
Francis.