Exception sorting grid

running the script







I get the following exception when sortRows() is executed:



Exception… “Component is not available” nsresult: “0x80040111 (NS_ERROR_NOT_AVAILABLE)” location: “JS frame :: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js :: sss_saveState :: line 1753” data: no]



removing the sortRows call everything works fine (except the initial sort order)



pls help

ty

The grid loading is async, so you must call any commands against grid only after data loaded
     gridNennung.loadXML("./xml/Nennlisten/2008_Club_Frei.xml",function(){
         gridNennung.sortRows(0, ‘str’, ‘asc’);    

    });