using 8.2
This is a poorly written control
The only reason I am using it is becuase of styles sheet uses.
There is no properties list when you select view properties.
There is none of the things you need to set, like mas length, just to name one.
Infragistics, really needs to work on this set of controls to make them more useful.
Hi,
Can you tell specific feature that you would like to see in WebMaskEdit.
To set mask you need to use InputMask property. There is no MaxLength in that control, because mask will define it.
I would like to see it have the ability to do client side validation
i think that is the biggest issue.
I had some valid reason for writing that earlier post, but I worke doutsome issues in using the control.
WOuld still be nice to be able to attach some client side validation inthe control.
also add for more types of masks.
Mask may include required and optional entries. For example, # or 0 is required digit, 9 is optional digit, L is required letter, ? is optional letter, etc. Please see docs and intellisence help.
There are also few ClientSideEvents, like InvalidValue and KeyPress. Examples to filter entries and do automatic replacements
<script type="text/javascript">function WebMaskEdit_InvalidValue(oEdit, fields, oEvent){ var val = oEdit.getValue(); // alert("value="+val); // fill up require 2nd digit if(val.charAt(1) == ' ') val = val.substring(0, 1) + '0' + val.substring(2); // fill up required 3rd letter if(val.charAt(2) == ' ') val = val.substring(0, 2) + 'X' + val.substring(3); oEdit.setValue(val);}
function WebMaskEdit_KeyPress(oEdit, keyCode, oEvent){ // disable a if(keyCode == 65 || keyCode == 97) oEvent.cancel = true; // replace b by c (it may not work in some browsers) if(keyCode == 98) oEvent.keyCode = 99;}</script>
thanks for the information.