Announcement

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

    Empty grid gives total rows as 1000

    Hi,
    We have an empty grid which shows up even if no data is present in it. We don't want the grid to show up in this case. We are loading data through DataArrivedHandler. Problem is grid.getTotalRows() comes out to be 1000 even if the data has no rows which leads to empty grid being shown. This issue is intermittent.
    Also, when the grid has a single row, sometimes the grid is shown empty because grid.getTotalRows() comes out to be 1000 and total records comes out to be 0.

    #2
    Please see ResultSet.lengthIsKnown() - there is no way for the framework to know the available number of rows until the server returns the first set of rows. In the meantime, we return a placeholder value

    Comment


      #3
      Yeah ResultlengthIsKnoiwn() needs to be checked.And also wait for a placeholder value,as no alternative exists too identify no of rowa until and unless server returns first set of rows mybkexperience
      Last edited by Richmond14; 12 Jun 2019, 20:49.

      Comment

      Working...
      X