Categories | Question details Back To List | ||
How to sort the grid using an outside button How can i define a button to sort the grid by a specified columns? (Using the same function as pressing the column's header just outside the grid), is it possible doing the same thing for hidden columns? Answer posted on Nov 12, 2007 04:01 Sorting can be applied for any column ( without relation to its visible state ) You can have something similar to next <input type="button" onclick=" mugrid.sortRows(INDEX,'str','asc') " value="SORT" /> where INDEX - index of column which need to be sorted second param - 'str' - type of sorting (str,int,date, cus ) third param - 'asc' - direction of sorting (asc,des) |