Announcement

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

    Random switch between client-side and server-side filtering on ListGrid

    Firefox 24,
    <gwtVersion>2.6.1</gwtVersion>
    <smartgwtVersion>5.0-p20141210</smartgwtVersion>

    Hi,

    We have a problem about filtering behavior on a paginated ListGrid.
    When we type a value in the filter editor of a column, it doesn't always ask the server for data, but it seems to be quite random.
    So, it causes a problem when there are some particular fields that comes from different object types or that are not displayed the same way it is stored in database.

    Is there a way to force server call on all or only a few filter editors ?




    #2
    It's not a random behavior, it's a documented feature (see ResultSet) with a sample (Adaptive Filtering). It has a very, very large performance benefit, so the best thing to do would be to adjust your returned data so that client-side filtering can work. If there are selected scenarios where this cannot be done, you can set resultSet.useClientFiltering:false via listGrid.dataProperties for specifically the grids where the returned server data is inadequate.

    Comment


      #3
      Thanks for these explanations.
      I will maybe come back on this later, because it could be the core of a conception problem we have.

      Comment

      Working...
      X