Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    keyPress event not firing for PopUpTextArea

    Hello,

    I am noticing that when I define a keyPress event in editorProperties for a long text field in a list grid, then the keyPress event does not fire. It seems that by default SmartClient uses a PopUpTextArea item. If I explicitly define my ListGridField to be a TextArea instead of a PopUpTextArea, then the keyPress event does fire. However, I greatly prefer the PopUpTextArea because it "pops up" and doesn't make the entire row grow larger when going into edit mode. So, is there any way to make the PopUpTextArea fire the keyPress event? Or, is there a way to make the TextArea behave in a similar fashion to the PopUpTextArea so I can get the keyPress event but continue getting the "pop up" behavior? I am using 6.5.1 still.

    #2
    Would the change() or changed() events work for your use case, and can you see if they fire?

    Comment


      #3
      I tried those out on the examle below on the government column and they do not work if you change the editorType to "PopUpTextArea". Both change() and changed() seem to fire on key press when using "TextArea" but not "PopUpTextArea".

      http://www.smartclient.com/docs/6.5.1/a/system/reference/SmartClient_Explorer.html#customEditors

      Comment


        #4
        OK, if you could try keyDown and keyUp just to make sure there's no workaround, that would be great. Otherwise, is anything blocking you from a move to 8.0 or at least 7.0rc2? So far as we know, the only reported issues with an upgrade we already corrected.

        Comment


          #5
          Hi, unfortunately keyUp and keyDown do not work either. What is blocking us from going to 7.0rc2 or 8.0 is the time commitment of testing and debugging.

          We've tried to go to 7.0rc2 multiple times and have always found so many small bugs that block us. So, we decided to wait for 8.0. And, we are planning to try out 8.0 sometime in the near future. However, we are a bit reluctant to take the plunge without a formal published release. Even with such a release, it would still take a few weeks to upgrade in order to adequately test.

          So, all that being said, is a patch for 6.5.1 an option or is it just too much effort on your part?

          Comment


            #6
            Hi, I tried this problem in 7.0rc2 here:

            http://www.smartclient.com/docs/7.0rc2/a/system/reference/SmartClient_Explorer.html#customEditors

            And, the same issue exists with keyUp, keyDown, change, and keyPress. They all work just fine with textArea but not with popUpTextArea.

            So, it seems this is a fix you need to make for multiple versions and not just 6.5.1.

            Comment


              #7
              After messing around with this some more, I think we are just going to settle for using editorEnter to achieve the effect we want. There are too many issues with using keyPress including some funky behavior with date fields we are noticing.

              It still seems like those APIs should be supported for PopUpTextArea but I think we can live without any sort of patch for now.

              Comment


                #8
                Thanks Dave, and here's hoping you can move to 8.0 soon (for unrelated reasons, like formula fields).

                Comment

                Working...
                X