Categories | Question details Back To List | ||
How to set display order either Asc or Desc to the grid? Dear Support Team! I am using Drag-n-Drop functionality in on Grid Data, and updating the order both in XML file and in the database. Here assume we have 5 records in grid. 1 2 3 4 5 if i drag item 2 to the place of 5 then order will display correct (from top to bottom) if i drag 5 item to 3 position then order will be 1 3 2 4 5 But if i refresh the page it is displaying in the correct order (Data is displaying correct) How to apply either ASC or DESC order on grid data please help me Thanks In Advance Uvaraj24 Answer posted by Support on Aug 20, 2008 03:18 >>How to apply either ASC or DESC order on grid data You can sort grid by using grid.sortRows(index,type,direction); grid.sortRows(0,"","asc"); //sort grid by first column in ASC order Answer posted by uvaraj24 on Aug 20, 2008 03:29 Hi, If i use the above code " grid.sortRows(0,"","asc");" it is showing error that function is not defined, Because i am using online example files. please can you tell me what is the correct function. i used "aak" it is shoing some error the code i am using mygrid.TJ('sample.xml'); //mygrid.sortRows(0,"ed","asc"); //mygrid.aaK(0,"ed","asc"); please help me Thanks Uvaraj24 Answer posted by Support on Aug 20, 2008 05:43 >>Because i am using online example files. Online examples contains compressed code , which is not revalent to actual methods. You need to use js files from grid or suite package. |