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

Disable "spin" for GridViewMaskedTextBoxColumn

1 Answer 49 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 22 Jul 2010, 05:00 PM
on the RadMaskedTextBox, there's a property called IsSpinEnabled that you can turn on or off. This property doesn't seem to be exposed on the GridViewMaskedTextBoxColumn.. Is there another way to turn spin on or off?

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 23 Jul 2010, 09:40 AM
Hello Michael,

You can define the CellTemplate or CellEditTemplate of the column you want and add RadMaskedTextBox inside the DataTemplate. Afterwards you will be able to set IsSpinEnabled Property to True/False. For example:

<telerik:GridViewDataColumn DataMemberBinding="{Binding Number}" >
   <telerik:GridViewDataColumn.CellEditTemplate>
    <DataTemplate>
        <telerik:RadMaskedTextBox IsSpinEnabled="False" MaskType="Numeric" Mask="D" Value="{Binding Number}"/>
    </DataTemplate>                          
    </
telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>


Best wishes,
Maya
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
Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or