3.2.0

Grid Sorting Problem in Chrome2.0.178

Hi Alex ,

Iam using this Grid in my application ( IE 6,7,8) but now we are making our application compatible with Chrome 2.0.178 .

In my grid in some rows there is data and there some rows which are blank . The data in blank rows is replaced by "--" in every column of that row . Also i had made an change in aw.js file in AW.Formats.String
( comparator )

{obj.comparator=function(values,greater,less,equal,error,dir){return function(i,j){try{if(values[i] == "--" && values[j] == "--"){ if(dir == "descending"){values[i] = " ";values[j] = " ";}else{values[i] = $7F;values[j] = $7F;}return 1;}else if(values[i] == "--" || values[j] == "--"){if(dir == "ascending"){if(values[i] == "--"){values[i] =$7F;}if(values[j] == "--"){values[j] =$7F;}}else{if(values[i] == "--"){values[i] =" ";}if(values[j] == "--"){values[j] =" ";}}return 0;}else return greater * ("" + values[i]).localeCompare(values[j]) || equal(i, j); }catch(e){return error(i,j,e)}}}}

I this I had repalced my "--" with highest and lowest ASCII value in case of descending and ascending sorting . This logic works fine in IE 6 ,7, 8 . Now while sorting on Strings in Chrome this logic doesnt work . Any Suggestion from your Side to make this thing work ??????
Vivek Maheshwari
June 10,

This topic is archived.

See also:


Back to support forum