Announcement

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

    Multiple calls are sending when listgrid sort is modified from default sort.

    Dear Isomorphic,

    Thank you for your support.

    1. We have a listgrid which is directly attached to data source.
    2. I applied default sort property for one of the listgrid field as below

    timestampListGridField.setSortByDisplayField(true); // sort field
    ListGrid.setSortField("Timestamp"); //listgrid

    3. When i open window first time, Only single request with "timestamp" field sort is happened(here no issue).
    4. After that i selected other field header(say field name as "description") and that field state is stored in offline(setViewState(gridviewState);). state.
    5. When i re-visit the window two calls are hitting to server. One for default sort( for timestamp) and another for "description" field sort.
    6. Could you please let me is there any wrong in my approach or let me how to avoid two calls.

    Note: two server callsare invoked even if i don't set default field sort.(One call without sort field and another with recent selected field(description field).


    Thank in advance.

    Smart GWT Version: 12 pro
    Google chrome version: Version 65.0.3325.162 (Official Build) (64-bit).

    Regard,
    Last edited by vnathank; 23 Jun 2018, 07:00.
Working...
X