Categories | Question details Back To List | ||
:: pepysDHTMLX :: Columns sort in server and default mode I want to have for a grid, some collumns order by server, others collumn sort in typical mode (str, int, etc). Is that posible? How can I do this? Thanks.. Answer posted by Support on May 21, 2009 02:37 You can use default init of grid with default sorting type assigned, so it will be sorted on client side. After that you can attach custom code to on onBeforeSorting event, which receives all info about sorting request ( column, direction ) and for columns which need to be sorted on server initiate data reloading with necessary order Check "Server side sortin" at http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Sorting_in_grid.html#grid_art_sort The only difference in your case - the additional check need to be added, to trigger reloading logic only for some columns. grid.attachEvent("onBeforeSorting",function(ind,type,direction){ if (is_sort_on_client(ind)) return true; ... start reloading... |