:: Forum >>

Sorting numbers not work on IE but work on firefox

we just purchased v2 and noticed a strange behaviour.

the sorting works fine on firefox, but on IE nothing happens.

obj.setCellValue(function(i, j){
var text = myData[j][i];
if (text == " " || text == "-")
return Number(0);
else
{
var newText = text.replace(/,/g,'');
newText = newText.replace(/[$]/g,''); // remove $ symbol
return Number(newText);
}
});

i tried to trace through and the Number returned are correct. another grid i have only text and sorting works fine.

any clues? thanks
heidit
Friday, April 14, 2006
AHH it looks like 2 rows have the same value of 0, and IE breaks. any idea how to fix this?
heidit
Friday, April 14, 2006
It looks like the same bug as here -

http://www.activewidgets.com/javascript.forum.13329.1/sort-problem-with-equal-values.html

if so, could be fixed by assigning numeric format to this column.
Alex (ActiveWidgets)
Monday, April 17, 2006

This topic is archived.


Back to support forum

Forum search