获取文字值从蒙面文本框输入 [英] Getting Literal Value from a Masked Text Box Input
本文介绍了获取文字值从蒙面文本框输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经成立了一个Telerik的RadMaskedTextBox以#### - ####的面具。问题是,当我后来抓住从这个箱子返回为########的值。我不熟悉MaskedTextBoxes但我猜,这是默认方式它应该回到我的价值。
I've set up a Telerik RadMaskedTextBox with a Mask of "####-####". The problem is, when I later grab the value from this box it returns as "########". I'm unfamiliar with MaskedTextBoxes but I'm guessing that this is the default way it's supposed to return my value.
我怎么可以设置 - 作为RadMaskedTextBox文字字符,因此返回整个价值?
How can I set the "-" as a literal character in the RadMaskedTextBox so it returns the whole value?
恩。 1234-5678,而不是12345678
ex. "1234-5678" instead of "12345678"
推荐答案
使用 TextWithLiterals
而不是文本
属性。
这篇关于获取文字值从蒙面文本框输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文