This question is locked. New answers and comments are not allowed.
Hi,
The behaviour I want when changing 1000 to 2000 is to be able to put the cursor to the left of the 1, press delete and then press 2. I can do this with RadMaskedNumericInput by changing UpdateValueEvent="LostFocus". How do I get the same value when the value is in a RadGridView?
I can't attach zips here but the xaml is :
Thanks
The behaviour I want when changing 1000 to 2000 is to be able to put the cursor to the left of the 1, press delete and then press 2. I can do this with RadMaskedNumericInput by changing UpdateValueEvent="LostFocus". How do I get the same value when the value is in a RadGridView?
I can't attach zips here but the xaml is :
<StackPanel> <telerik:RadMaskedNumericInput IsClearButtonVisible="False" FormatString="#,#.00" AutoFillZeros="False" Mask="" UpdateValueEvent="LostFocus" HorizontalAlignment="Right" Value="{Binding SingleValue}"></telerik:RadMaskedNumericInput> <telerik:RadGridView AutoGenerateColumns="False" ItemsSource="{Binding Items}"> <telerik:RadGridView.Columns> <telerik:GridViewMaskedInputColumn Header="Value" DataMemberBinding="{Binding Value, Mode=TwoWay}" TextAlignment="Right" DataFormatString="#,#.00" EditTriggers="CellClick"/> </telerik:RadGridView.Columns> </telerik:RadGridView></StackPanel>
Code behind is:
public partial class MainPage
{
public MainPage()
{
InitializeComponent();
SingleValue = 10000m;
Items = new List<Item>
{
new Item { Value= 10000m},
};
DataContext = this;
}
public decimal SingleValue { get; set; }
public List<Item> Items { get; set; }
}
public class Item
{
public decimal Value { get; set; }
}
Thanks