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
294
Pasting into a WebMaskEdit Control doesn't work (intermittant)
posted

This is one those items that was on the prior forum for some time, and apparently never fully resolved.

I am using 2007 v1 and when I attempt to paste (in IE7), for example, a  number like 70809011 into a WebMaskEdit with an Input Mask of ##-#######, DataMode=RawText, the paste seems to work -- but not consistently -- such that sometimes the pasted digits disappear and the result is  70-__80901 or 70-_809011, and other times I get correctly 70-809011_.

 There are a few ways to paste (only the latter is a problem):

1)  Selecting all the control contents and using the mouse to Paste -- always works.

2)  Setting focus in the control (with empty content) and using the mouse to Paste -- always works.

3)  Selecting all the control contents and using the keystroke Ctrl+V to Paste -- always works.

4)  Setting focus in the control (with empty content) and using the keystroke Ctrl+V to Paste -- inconsistenly works.  When this fails, I can see super briefly all the expected characters, and then the contents being rewritten (which pushes values to the right).   This seems like a race condition between applying the mask and accepting the new data.  Certainly, I'm bothered that the result is inconsistent when wrong.

 Note:  Using the IE7 menu item Edit | Paste does nothing at all.

 Does anyone know of a workaround?  (I tried on of the more recent hotfixes but still have the same problem).

Parents
No Data
Reply
  • 24497
    posted
    Thank you for reporting a bug.
    I could not reproduce #4 and #5 (menu) the way you described. However, I heard several times about ocasional problems with Ctrl+V, but I never could reproduce that (due to failure of my fingers to move fast). Today I at last figured out steps: release Ctrl key before V and paste fails. But it fails completely, not partially.
    The paste from menu always works for me, however, if caret is located at the end, then nothing is pasted, because new text will appear beyond mask.
     
    The Ctrl+V (Ctrl is released before V) was fixed, however, I do not know when it will be available as a hot fix.
     
     
    Regards,
    Viktor
    Infragistics web team
     
    <aspireConsulting> wrote in message news:11454@forums.infragistics.com...

    This is one those items that was on the prior forum for some time, and apparently never fully resolved.

    I am using 2007 v1 and when I attempt to paste (in IE7), for example, a  number like 70809011 into a WebMaskEdit with an Input Mask of ##-#######, DataMode=RawText, the paste seems to work -- but not consistently -- such that sometimes the pasted digits disappear and the result is  70-__80901 or 70-_809011, and other times I get correctly 70-809011_.

     There are a few ways to paste (only the latter is a problem):

    1)  Selecting all the control contents and using the mouse to Paste -- always works.

    2)  Setting focus in the control (with empty content) and using the mouse to Paste -- always works.

    3)  Selecting all the control contents and using the keystroke Ctrl+V to Paste -- always works.

    4)  Setting focus in the control (with empty content) and using the keystroke Ctrl+V to Paste -- inconsistenly works.  When this fails, I can see super briefly all the expected characters, and then the contents being rewritten (which pushes values to the right).   This seems like a race condition between applying the mask and accepting the new data.  Certainly, I'm bothered that the result is inconsistent when wrong.

     Note:  Using the IE7 menu item Edit | Paste does nothing at all.

     Does anyone know of a workaround?  (I tried on of the more recent hotfixes but still have the same problem).



    http://forums.infragistics.com/forums/p/1182/11454.aspx#11454

Children
No Data