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

[Solved] Cell just accepts Number data

2 Answers 91 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.
Fabiana
Top achievements
Rank 1
Fabiana asked on 13 Oct 2010, 07:02 PM
Hi Support!

I would like to know how to accepts just NUMBER data into RadGridView cell ? And Is there a way to translate "Input is not in a correct format" text ?

--> Important: I am using CellEditEnded() event to get  e.NewData  and e.OldData , so I think I canĀ“t use CellTemplate....



 <telerik:RadGridView Margin="0,0,0,0" Name="RadgrdView"TabIndex="2" Width="Auto">

                <telerik:RadGridView.Columns>

<telerik:GridViewDataColumn Header="Quantity"   DataMemberBinding="{Binding Quantity}"   x:Name="RadColumnQuantity" Width = "*"  IsReadOnly="False"/>


                </telerik:RadGridView.Columns>

            </telerik:RadGridView>

2 Answers, 1 is accepted

Sort by
0
Accepted
Nedyalko Nikolov
Telerik team
answered on 14 Oct 2010, 12:16 PM
Hi Fabiana,

You can use dedicated GridViewMaskedTextBoxColumn:

<telerik:GridViewMaskedTextBoxColumn DataMemberBinding="{Binding Quantity}" Mask="f" MaskType="Numeric" />

I hope this will help.

Kind regards,
Nedyalko Nikolov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Fabiana
Top achievements
Rank 1
answered on 14 Oct 2010, 01:15 PM
Hi Nedyalko Nikolov,

Thank you very much!!!!

Perfect!!!
Tags
GridView
Asked by
Fabiana
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Fabiana
Top achievements
Rank 1
Share this question
or