Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jsp ページで DHTMLX グリッドを使用しています。サーバー側から、いくつかのデータをロードしています。グリッドにロードされたら、データを並べ替えたいと思います。メソッドがあることがわかりましたが "grid.sortRows(col, type, order);"、ヘッダーをクリックした場合にのみ機能します。デフォルトでデータがソートされて表示されるようにしたいです。
"grid.sortRows(col, type, order);"
mygrid.load(YOUR_URL, function() { // we are in callback mygrid.sortRows(0, "str", "des"); // sorts grid mygrid.setSortImgState(true, 0, "des"); // sets icon to sort arrow });