Hi
I am trying to use the RadMaskedTextBox for the first time and have hit an issue. Where is the MaskType property?
(where c2 is a TableCell() control)
Yet it is clearly documented on this page as a property of the RadMaskedTextBox
http://www.telerik.com/help/wpf/radmaskedtextbox-features-numeric-mask.html
Here is a sample of the code from that page.
How do I set the MaskType on a dynamically created RadMaskedTextbox?
Note: I tried this
Ugly and heavy handed way to do something that should be a property of the control. Does not work however.
To make matters worse, the textbox that gets written to the page has the letter 'd' in it, AND it cannot be edited..
The textbox input is disabled.
What's going on?
How do I add a dynamically created RadMaskedTextBox to a page, set it's MaskType property and have a functioning textbox once the page loads?
I am trying to use the RadMaskedTextBox for the first time and have hit an issue. Where is the MaskType property?
RadMaskedTextBox m1 = new RadMaskedTextBox();
m1.ID = ID;
m1.Mask = "d";
//m1.MaskType << No such property
c2.Controls.Add(m1);
(where c2 is a TableCell() control)
Yet it is clearly documented on this page as a property of the RadMaskedTextBox
http://www.telerik.com/help/wpf/radmaskedtextbox-features-numeric-mask.html
Here is a sample of the code from that page.
<
telerik:RadMaskedTextBox
MaskType
=
"Numeric"
Mask
=
"d"
Value
=
"111.234"
Margin
=
"0,5,0,10"
/>
How do I set the MaskType on a dynamically created RadMaskedTextbox?
Note: I tried this
m1.Attributes.Add("MaskType", "Numeric");
Ugly and heavy handed way to do something that should be a property of the control. Does not work however.
To make matters worse, the textbox that gets written to the page has the letter 'd' in it, AND it cannot be edited..
The textbox input is disabled.
What's going on?
How do I add a dynamically created RadMaskedTextBox to a page, set it's MaskType property and have a functioning textbox once the page loads?