Announcement

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

    ListGrid's "Clear Sort"

    I am using Smart GWT 2.1 (the release version from http://code.google.com/p/smartgwt/downloads/list, not a nightly build) and noticed that after sorting a grid either by clicking on the header or by using "Sort Ascending/Descending" from the header menu, and then clicking "Clear Sort" from the header menu, the arrow in the header is removed but the sort still remains. I saw that this issue also occurs in the Smart GWT Showcase for the grids (e.g. http://www.smartclient.com/smartgwt/showcase/#grid_appearance_columnorder). I similarly don't see anything happen when directly calling the ListGrid.clearSort() method and I don't see any exceptions being thrown in the background.

    The steps to reproduce this are:
    1) Click on a column header in a grid to sort it (use the above link)
    2) Open the column header menu
    3) Select "Clear Sort"
    Expected: The sort direction arrow is removed and the data is restored to its unsorted state
    Observed: The sort direction arrow is removed, but the data stays in its sorted state

    Has this been fixed in a 3.0+ nightly build, or am I missing a step in configuring my ListGrid to be able to clear its sorting?

    #2
    The Clear Sort button clears the sort criteria for the current column. It makes more sense if you are sorting by more than one column. Right click on a column. Go into Configure Sort and add some columns to the sort. Now right click on one of the columns you chose and click Clear Sort. This time it does re-sort the data. It doesn't seem todo anything (other than remove the sort icon) if you just Clear Sort when only one column is being sorted.

    It may seem strange to reply to a question after so long, but maybe someone else will have the same problem in the future.

    Comment

    Working...
    X