Announcement

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

    Set operationId on listgrid multiple times not working?

    Hello,

    just tried this on a list grid:

    Code:
    private void handleOperationId(boolean setEnabled){
            GWT.log("handleOperationId: " + operationId + ", setEnabled: " + setEnabled);
            grid.setFetchOperation(setEnabled ? operationId : null);
        }
    But it seems that after you set it once, it doesn't change? After my method above, I do invalidateCache, and it still uses the old operation when fetching.

    #2
    Hi mathias,

    what happens with
    Code:
    grid.setFetchOperation(setEnabled ? operationId : "fetch")
    ?

    Best regards
    Blama

    Comment


      #3
      Doesn't matter, once you set it, the grid will use that operationId in requests forever, from what I can tell.
      Code:
      private void handleOperationId(boolean setEnabled){
              String newOpId = setEnabled ? operationId : "fetch";
              GWT.log("handleOperationId: " + operationId + ", setEnabled: " + setEnabled +  ", setting operation to: " + newOpId);
              grid.setFetchOperation(newOpId);
          }
      If you set it to fetch or anything else first, it will always have that, and the other way around.
      Last edited by mathias; 26 Nov 2024, 03:53.

      Comment

      Working...
      X