I have this code, the grid loads ok from a table, but when the user click the headers to sort the grid, doesn�t sort correctly. I have modifiy the setColSorting property but don�t fix the problem.
Actually sorting works correctly , but it threats values as strings , and event if you change your code to mygrilla.setColSorting(“int,str,int,int,int,int,int”); the sorting will be still incorrect because you are using numbers with additional formatting, which can’t be correctly parsed by native parseInt functionality
yes, if i put 585371,20 instead 585.371,20 ( without thousand separator) the sort works correctly. And how i can format the column to have thousand separator ? i have tried with mygrilla.setColTypes(“ro,ro,price,price,price,price,price”); but don´t work ( hey, sorry for my english, i hope you understand something ) thanks a lot
You can have data in original HTML table as plain numbers and add comma separator as part of grid number formating functionality - please check attached sample