Announcement

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

    ListGrid clearSort don't work

    Using
    SmartGWT 2.4

    After many tests, I verified that in all samples, within Demos (current version), about ListGrid, if I repeat the sequence sort + clearSort least twice the ListGrid clearSort don't works, it works only the first time, ListGrid sort although there are no defined any sort criteria.

    (this occurrs in all editable listgrid)

    Steps
    1. Grids/Editing/Edit by Cell
    2. Sort by Continent Ascending or Descending
    3. Clear Sort
    4. Edit Continent within first row, select one different

    What is the expected output?
    the row position should not change

    What do you see instead?
    the row position does not change

    5.Sort again by Continent Ascending or Descending
    6.Clear Sort again
    7.Edit Continent within first row, select one different

    What is the expected output?
    the row position should not change

    What do you see instead?
    the ListGrid resort also if Clear Sort was selected and if no sort criteria was defined

    Any one has any workaround? Thanks,
    Last edited by vluison; 24 Feb 2011, 01:48.

    #2
    Hi,

    I have the same problem, but I can reproduce it in an easier way (the "clearSort()" doesn't work at the very first time).

    I have a TreeGrid, where I add nodes (the nodes are added to the end of the list)

    Then I call "sort" and the nodes are sorted. Then when adding new nodes, all the new nodes are added in the sort order.

    Then I call "clearSort()". But, the behavior of the tree persist. The nodes kept sorted, and new nodes are added in the sort order.
    What I want is to switch back to the behavior without any sorting.

    Can anybody help?

    Thanks.

    Comment

    Working...
    X