Announcement

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

    Listgrid hanging in row editor when flipping between two long text fields

    Dear Isomorphic Support:

    I have a data bound listgrid that has two long text fields (> 255) in adjacent columns. The long text field seem to have automatically launch a text pane in the cell location when editing the field in the row editor.

    In compiled code, when I quickly flip back and forth between the two long text field cells in the listgrid row editor, the browser hangs (looks like java script is spinning somewhere) after going through two to five cycles between the fields. The interesting thing is this doesn’t seem to happen in debug mode in eclipse.

    Details below:

    Product: SmartGWT 3.0p nightly build Nov 15, 2012
    Browser: IE 9

    Cheers T.

    #2
    Hi T.,
    We're having trouble reproducing this on our end.
    If you can provide a simple standalone test case that demonstrates the problem it'll probably clear up what's going on. Also - clear steps to reproduce in terms of what fields you're actually tabbing through, how many cycles of Tab + Shift/Tab are typically required before you hit the issue, etc.

    Thanks
    Isomorphic Software

    Comment


      #3
      It is a tricky one to debug since it only happens on the production server. Perhaps timing is involved since the transition between the two long text fields is much faster in compiled code.

      The data source fragments of the long fields are the following in the correct order:


      <field name="firstName" type="text" title="FirstName" width="10%" length="256">
      </field>


      <field name="lastName" type="text" title="LastName" width="10%" length="256">
      </field>

      The generated columns in the UI is shown in the attachment longtext.jpg where you can see that two long text fields are automatically rendered as a text pane in edit mode.

      The lockup happens when I simply double click between the first name and last name fields at a brisk pace. It usually happens after one or two cycles between the fields.

      The compiled code is running on a CentOS 5.4 variant under Tomcat.

      As an alternative to this issue, we really didn't like the automatic switch to a text pane for text fields > 255 in edit mode. It sticks out like a sore thumb and is not uniform to the other text fields we have. We really only show a 20 characters window of text max per column anyways so switching to the text pane after 255 characters doesn't really make sense for us. Is there a way to turn off this auto behaviour?

      The problem doesn't seem to happen during a test where I reduced the text length to 255 and the text fields are rendered regularly on the grid during editing.

      T.
      Attached Files

      Comment


        #4
        You can set dataSourceField.editorType to "TextItem" to get rid of the pop-up text area if you don't like it.

        This additional detail didn't really help in terms of diagnosis. Two things:

        1. in your other threads you are citing some weird behaviors, which seem to be related to loading your app in an existing Struts-based application environment. Any further weird behaviors you hit (including this one) should be retested in a plain SDK so you can figure out if it's really a framework issue as such, or related to your application environment

        2. it's not clear if this problem is a JavaScript infinite loop, JavaScript crash, or something else - you just said "hanging". If it's a JavaScript error, it should be reported in the Developer Console. If it's a loop, you should see IE pop a dialog, and if IE's Developer Tools are open (hit f12) you should be able to see the stack at the time of the hang.

        Here again, if these diagnostics don't seem to be available, we would suspect your special application environment.

        Comment

        Working...
        X