Announcement

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

    ListGrid: setCanSelectCells(true) Bug?

    Hello,

    I have a list grid that has these properties:

    Code:
    ListGrid grid = new ListGrid();
    grid.setCanEdit(true);
    grid.setCanSelectAll(true);
    grid.setCanDragSelect(true); // these are what need to be tested
    grid.setCanSelectCells(true);// these are what need to be tested
    grid.setShowRecordComponents(true);
    grid.setShowRecordComponentsByCell(true);
    These drag and select features are awesome. The issue I run into is when I have a large data resultSet (lets say 100 records) in the grid and need to scroll, I select a record on the bottom of the grid but the grid scrolls to the top and the last visible record gets selected.

    Steps to reproduce:
    1) Fetch all data which requires scrolling.
    2) Make an edit in of the top rows and save.
    3) FOCUS OFF browser (click anywhere off the browser like selecting a file to view). Users do this all the time to view work from excel or downloaded files to compare with grid data...
    4) Don't refocus but scroll down in grid to last record (very bottom and select a column)
    5) This causes a refocus and grid will scroll to top and select the last visible record in grid.

    This ONLY occurs when using setCanSelectCells(true).

    Please let me know if you need anything else.

    -Zhene



    #2
    Isomorphic is this being looked at?

    Comment


      #3
      Hi Isomorphic,

      out of interest I tried here (v13.0p_2022-09-14) with the following sample code and saw some warnings when scrolling.
      This is not directly related to the OPs post, but perhaps related:
      Code:
      isc.ListGrid.create({
          ID: "dsListGrid",
          width: "100%",
          height: "100%",
          autoFetchData: true,
          dataSource: "supplyItem",
          showFilterEditor: true,
          alternateRecordStyles: true,
          // showRecordComponents:true,
          // canSelectAll: true,
          // canDragSelect: true,
          canSelectCells: true,
          cellSelectionChanged: function(cellList) {
              var cells = this.selection.getSelectedCells();
              displayForm.setValue("countries", isc.Comm.serialize(cells, false));
          }
      });
      
      isc.DynamicForm.create({
          ID: "displayForm",
          width: 250,
          height: 100,
          top: 250,
          fields: [{
              name: "countries",
              type: "textArea",
              width: "*",
              colSpan: "*",
              titleOrientation: "top",
              title: "Selected Cells"
          }]
      });
      
      isc.VLayout.create({
          ID: "vLayout",
          width: "100%",
          height: "100%",
          members: [dsListGrid, displayForm]
      });
      The warning I get is this and seems to be related to canSelectCells: true.
      Code:
      17:16:40.439:KUP6:WARN:ResultSet:isc_ResultSet_10 (dataSource: supplyItem, created by: dsListGrid):get: invalid index loading
      17:16:40.440:KUP6:WARN:ResultSet:isc_ResultSet_10 (dataSource: supplyItem, created by: dsListGrid):get: invalid index loading
      17:16:40.440:KUP6:WARN:ResultSet:isc_ResultSet_10 (dataSource: supplyItem, created by: dsListGrid):get: invalid index loading
      ...
      Best regards
      Blama

      Comment


        #4
        Thanks Blama

        Isomorphic is this being looked at or worked on?

        Please provide an update.

        Comment


          #5
          This is queued to be looked at, but you are current posting from an account that does not have support, and this is a niche, low severity bug, so it's pretty far down the list. If you actually have support, please do let us know.

          Comment

          Working...
          X