Announcement

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

    SmartGWT 2.4 - ListGrid - How to disable client filtering?

    Hi,
    I have ListGrid with Criteria. Criteria contains two DateItem values. On ListGrid fetch operation rows are specially filtered on the server side. This is OK.

    But when I edit some row values and save data then edited row disappears from ListGrid. IMHO it is a problem with client side filtering which does not implement special logic on the client side.

    I would like to disable client filtering at all. Is it possible?

    Best regards,

    Ales Ondrus

    #2
    See the FAQ on grids not updating properly.

    Comment


      #3
      Originally posted by Isomorphic
      See the FAQ on grids not updating properly.
      Thanks for your reply. As I expected problem is with filter on the client side. I found following in log:

      Code:
      didn't match filter: {serviceType: 10013,
      dateFrom: "2011-07-27T14:00:00",
      dateTo: "2011-08-10T11:00:00",
      _counter: 2}
      07:55:18.202:XRP3:DEBUG:ResultSet:isc_WindowReservation_3_1 (created by: isc_ListReservationSupport_1):updated cache: 0 row(s) added, 0 row(s) updated, 1 row(s) removed.
      I do not want to perform client filtering when updated row is returned from server. How to disable it?

      Look to JavaScript source, row is not removed if

      Code:
      _17=this.getDataSource().recordMatchesFilter(_10,_16,this.context)
      or

      Code:
      _18=this.shouldNeverDropUpdatedRows()
      Method recordMatchesFilter not found in SmartGWT API and when I set

      Code:
      getListGrid().setDataProperties(new ResultSet() {
      	public Boolean getNeverDropUpdatedRows() {
      		return true;
      	}
      });
      nothing happens row is removed from grid.

      Best regards,

      Ales

      Comment


        #4
        Strange that you would dive deeply into the code, you just need to setNeverDropUpdatedRows(true), not override it.

        Comment

        Working...
        X