This is a migrated thread and some comments may be shown as answers.

[Solved] RadMaskedTextBox causing wierd behavior inside of a CellEditTemplate

2 Answers 113 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jason
Top achievements
Rank 1
Jason asked on 08 Dec 2009, 03:50 PM
Hi I have some code as such

<telerikGridView:GridViewDataColumn Header="Money"   
                                                    Width="100" 
                                                    DataMemberBinding="{Binding Money}" 
                                                    DataFormatString="{} {0:c}">  
                    <telerikGridView:GridViewDataColumn.CellEditTemplate> 
                        <DataTemplate> 
                            <Grid VerticalAlignment="Center">  
                                <Grid.ColumnDefinitions> 
                                    <ColumnDefinition Width="*"/>  
                                    <ColumnDefinition Width="Auto"/>  
                                </Grid.ColumnDefinitions> 
                                <telerikInput:RadMaskedTextBox x:Name="MoneyTextBox" 
                                                               MaskType="Numeric"   
                                                               Mask="C0" 
                                                               Value="{Binding Money, Mode=TwoWay}" 
                                                               Grid.Column="0" 
                                                               VerticalAlignment="Center"/>  
                                <my:ValidationElement TargetControl="{Binding ElementName=MoneyTextBox}" 
                                                     Grid.Column="1" 
                                                     VerticalAlignment="Center"/>  
                            </Grid> 
                        </DataTemplate> 
                    </telerikGridView:GridViewDataColumn.CellEditTemplate> 
                </telerikGridView:GridViewDataColumn> 

When i click on the cell then click on it again to bring up the CellEditTemplate i get the RadMaskedTextBox properly.

When i click into the RadMaskedTextBox and type in a single number the cell automatically goes back into read mode and the next cell to the right is highlighted (like hitting the tab button).

Any ideas of what could be causing this?

EDIT*  I have found other columns having the same behavior.  If I create a GridViewDataColumn and in the CellEditTemplate i put a normal CheckBox by itself.  When i double click to bring up the CheckBox that can be modified as soon as i click into the CheckBox to change its value the Cell goes back into Read mode and tabs to the next cell in the tabbing order

2 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 10 Dec 2009, 01:17 PM
Hi Jason,

I have created a sample application that illustrates this approach but I was unable to reproduce the issues you described. Can you please send to us additional information about your case or modify the sample application to reproduce it?


Kind regards,
Tsvyatko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jason
Top achievements
Rank 1
answered on 10 Dec 2009, 06:54 PM
Ok, so it was happening, and I even found yesterday that it was happening in one of your on-line demos.  I checked back on the demo today that its now working and I noticed the demo was updated to use the new Dec 08 release of the controls.  I downloaded the updated controls and used them and now its fixed.
Tags
GridView
Asked by
Jason
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Jason
Top achievements
Rank 1
Share this question
or