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

GridViewMaskedTextBoxColumn how does it work

3 Answers 172 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anton Swanevelder
Top achievements
Rank 2
Anton Swanevelder asked on 02 Jul 2010, 12:12 PM
Hi,

Is there some documentation available on how the GridViewMaskedTextBoxColumn works?

The following does nothing for display, is there some examples somewhere?

 

<telerik:GridViewMaskedTextBoxColumn DataMemberBinding="{Binding AuditDateCreated}" Header="Date" Width="100" HeaderCellStyle="{StaticResource GridViewHeaderCellStyle1}"  Mask="yyyy-MM-dd" MaskType="DateTime"/> 

 

Lastly will this column work for displaying a Date in a certain format or do I need to use a IValueConverter?

Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 02 Jul 2010, 02:00 PM
Hello Anton,

You can find a help article abut the GridViewMaskedTextBox column here.

More info about the RadMaskedTextBox is available here.

Let me know if you face any specific problem.

Kind regards,
Veskoni
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
Anton Swanevelder
Top achievements
Rank 2
answered on 02 Jul 2010, 02:22 PM
Thanks that is great!

0
BILL
Top achievements
Rank 1
answered on 14 Jan 2013, 08:13 PM
this example is sparse and not helpful, I am using the following
<telerik:GridViewMaskedTextBoxColumn Header="Mileage" DataMemberBinding="{Binding Path=Mileage, Mode=TwoWay}" MaskType="Numeric" Mask="d" DataFormatString="{}{0:d}" GotFocus="GridViewMaskedTextBoxColumn_GotFocus" LostFocus="GridViewMaskedTextBoxColumn_LostFocus" />
and it shows nothing in the initial text box till I go to edit it...
because if you cannot initially show bound data without having to override the class then this control is useless.
Tags
GridView
Asked by
Anton Swanevelder
Top achievements
Rank 2
Answers by
Veselin Vasilev
Telerik team
Anton Swanevelder
Top achievements
Rank 2
BILL
Top achievements
Rank 1
Share this question
or