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

Save masked field WITH mask in databind

2 Answers 67 Views
Input
This is a migrated thread and some comments may be shown as answers.
Hk
Top achievements
Rank 2
Hk asked on 03 Feb 2009, 06:10 PM
i have a rad input field with IP mask:
<telerik:radmaskedtextbox id="SecondaryIPAddressTextBox" runat="server"  Text='<%# Bind("SecondaryIPAddress") %>' mask="<0..255>.<0..255>.<0..255>.<0..255>" Skin="Vista"  PromptChar="_"></telerik:radmaskedtextbox> 
The text that is saved for the IP 192.192.192.192 (For example) is: 192192192192.
How can I save the text WITH the mask elements?


2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 04 Feb 2009, 05:56 AM
Hi Hk,

Try using the TextWithPromptAndLiterals to get the text WITH the mask elements from the RadMaskedTextBox,

This will give the  text the user entered plus any prompt characters for characters the user has not yet entered and any literal characters that come from the mask. This property is read only.

Hope this helps.

-Shinu.

0
Hk
Top achievements
Rank 2
answered on 04 Feb 2009, 09:11 AM
Hi Shinu,
thanks, I tried only text with literals, i also succeeded to #bind a value to it.
Tags
Input
Asked by
Hk
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Hk
Top achievements
Rank 2
Share this question
or