Hi,
Changing control from mask to no-mask is not supported. Also changing mask on client is not supported neither (you will get problem on server with interpretation value).
However, since WebTextEdit allows dynamic filtering it is quite simple to turn it into any filter. For example, process ClientSideEvents.KeyDown and implement it by something like below
// that will allow to enter only digits by client
function WebTextEdit1_KeyPress(oEdit, keyCode, oEvent)
{
if(!this._onlyDigits) return;
if(keyCode < 48 || keyCode > 57)
oEvent.cancel = true;
}
// assume that is your setter mask/noMask function
function myDynamicMaskSet(enable)
{
var edit = igedit_getById('WebTextEdit1');
if(!edit)
{
alert('can not find WebTextEdit1');
return;
}
if(enable)
{
edit.elem.maxlength = 5;
edit._onlyDigits = true;
}
else
{
edit.elem.maxlength = 8;
edit._onlyDigits = false;
}
}