Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3338
WebMaskEdit text entry issue...
posted

Using the WME controls on an asp.net page.. I have mask set to 50 characters, the user picks some text from a dialogwindow that is inserted into the control.

However, when they click into the control and position the cursor, start entering text, it switches from insert to overwrite, insert to overwrite.

So the first letter is inserted the next overwrites, then back to insert and overwrite.

They have not reached the length of the field.  What could cuase this?  I have it set to rawtext. input mask is set at runtime. Any ideas?

<igtxt:WebMaskEdit ID="txtPickVarValue2" runat="server" InputMask=""

 DataMode="AllText">

</igtxt:WebMaskEdit>

 

ctrlTextBox.EnableAppStyling = Infragistics.WebUI.Shared.DefaultableBoolean.True

ctrlTextBox.AutoPostBack = False

ctrlTextBox.SelectionOnFocus = Infragistics.WebUI.WebDataInput.SelectionOnFocus.SelectAll

ctrlTextBox.InputMask = "CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"

  • 24497
    posted

    Hi,

    Unfortunately the WebMaskEdit is not able to handle the paste operation by itself due to restricted security access to clipboard. Editor does not know how and which portion of text was modified, so it can not maintain override mode. The only thing editor can do to get around paste: is to process resulting text in field after default paste-action of a browser. The browser on paste inserts new clipboard string at location of caret and WebMaskEditor takes instant text in field, and calls setText(instantText).

    The paste in mask can work correctly only when whole text was selected (after get focus).