Announcement

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

    TreeGrid And Sorting

    Hi
    I have a performance issue in TreeGrid + Sorting combination.
    ( SmartClient version 6.0 ).

    I am using a databound TreeGrid ( with load on demand ) which is working fine normally.
    The client side Sorting feature is also working properly. At some cases the fetchData() will return 1000+ records.

    Problem:
    Fetching 1000+ records is not a problem normally and it is working properly.
    But if i have sorted a colum in the Grid and then if i call fetchData() everything is being slow down.
    There is a 'Stop the unresponsive script' warm message results from the browser.


    I analyzed that it is due the sorting process on the response data. ( since it was working fine without any colums clicked for sorting ).

    To avoid this slow down, i have decided to Reset (or clear) the sorting settings from the Grid before calling the fetchData () everytime. So that no sorting will happen on the arrival of data.

    I need a way to reset (ie No Sorting ) the sorting. I have tried with the
    unsort(), getSortState(), setSortState() api combination to achieve this, but nothing could reset the Sorting. ( The Grid colums still showing the sort arrow ).


    Can you help me in this? How to clear the sorting?

    Thanks in advance.

    #2
    We're having the same issue using SmartGWT 2.5.

    Comment

    Working...
    X