3 Replies Latest reply on May 1, 2009 1:59 PM by Nick Belaevski

    scrollableDataTable custom DataModel and sorting

    Thomas W Newbie

      I have a scrollableDataTabel with custom ScrollableTableDataModel. I want to use this to eventually push sorting down to the database.

      I notice that loadData(int startRow, int endRow, SortOrder sortOrder) is called twice whenever a column is sorted. Once to decode the components with previous sort order and then again to render the table with the new sortOrder. I have no input controls in the table. How can I avoid the decode pass that will cause a redundant database query?

      Second issue is the interface of the load method. SortOrder/SortField do not tell me what column is being sorted (id). It only contains the sortExpression. It would be good to have access to the corresponding column ids within this method. Is this a planned enhancement?