Announcement

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

    RichTextItem in ListGrid as first editable does not focus editor on startEditingNew()

    SmartGwt Nightly 6.1d.0.0 05/20/2017 12:58 +0000

    Steps to reproduce

    Take GridEnterNewRowSample from http://www.smartclient.com/smartgwt/...diting_new_row

    Make the editor of the listgrid column "nameField" a RichtTextItem like this:

    Code:
    ListGridField nameField = new ListGridField("countryName", "Country");
    // START INSERT
    final com.smartgwt.client.widgets.form.fields.RichTextItem prototypeRichtextEditor = new com.smartgwt.client.widgets.form.fields.RichTextItem();
    nameField.setEditorProperties(prototypeRichtextEditor);
    // END INSERT
    ListGridField continentField = new ListGridField("continent", "Continent");
    Expected behaviour:
    On click "Edit New" button a new row is added to the listgrid and the richtextitem editor is focused.

    Observed behaviour:
    On click "Edit New" button a new row is added to the listgrid but the editor is neither shown nor focused. The editor is only show after clicking the respective cell at least twice.
    Attached Files

    #2
    Hi,

    Could somebody reproduce the issue?

    TIA

    Comment


      #3
      Yes, we see the issue - it's assigned to be looked at but queued behind issues reported by customers with support contracts. We'll update here when it's been fixed.

      Comment


        #4
        Thank you!

        Comment


          #5
          This has now been fixed - please retest with a build dated June 16 or later.

          Comment


            #6
            Just checked quickly, looks good!

            Thank you!

            Comment


              #7
              I am facing a similiar focus issue in Dynamic Forms... This seems to be a Ubuntu/Chrome issue. In some rare cases setting autofocus to true is working but in most of the cases it does not work under Linux/Chrome. The cursor is then correctly placed... blinks one time and then disappears. The focus is then lost. After clicking the tab key on the keyboard... the next field is focused correctly.

              1. Ubuntu 17.04 /Chrome 59 - FOCUS FAILS
              2. Ubuntu 17.04 /Firefox 54 - FOCUS WORKS
              3. Ubuntu 17.04 /Firefox 54 - FOCUS WORKS

              1. Windows 10 / Chrome 59 - FOCUS WORKS
              2. Windows 10 / Firefox 54 - FOCUS WORKS
              3. Windows 10 / Firefox 54 - FOCUS WORKS

              1. Mac OS / Chrome 59 - FOCUS WORKS
              2. Mac OS / Firefox 54 - FOCUS WORKS
              3. Mac OS / Firefox 54 - FOCUS WORKS

              SmartGWT Version: 6.1d (18.06.2017)

              Code:
              DynamicForm form = new DynamicForm();
                      form.setDataSource( dataSource );
                      form.setUseAllDataSourceFields( false );
                      form.setWidth( formWidth );
                      form.setCanSelectText( true );
                      form.setAutoFocus( true );
              Last edited by andyx1975; 20 Jun 2017, 01:41.

              Comment

              Working...
              X