I am using currently PRO Version of PQ grid. I have already gotten in touch with PQ -Grid team via mail, where-in the reply was to add "datatype:float". I have been using datatype:float in the column and initiating it when getting data, i.e.in "Getdata" function, as here we use Remote method and column bindings are dynamic. Other data types like Integer, Date works just fine except the float. Please help if there is something that's missing. Once column model is build, it is binding to grid, as below :
Grid.option("colModel", columnmodel);
This is how the obj is built :
columnmodel.push(
{
title: "PRICE",
dataIndx: "price",
editable: false,
});
//say if Price is in index 0,
if (columnName == "PRICE") {
columnmodel[0].dataType = 'float';
}
It gets sorted wrongly like this :
109.51
111.74
112.57
1124.08
113.14
113.5
Kindly advise