Hi there,
Does sortRows work with custom sorting routine ??
I tried it AFTER loadXML (as I want to sort after grid is loaded), but its not working
function int_custom(a,b,ord){
a=a.toString().replace(/<[^>]*>/g,"")1;
b=b.toString().replace(/<[^>]>/g,"")1;
return (a>b?1:-1)(ord==“asc”?1:-1);
}
Is this correct ? Please help.
Does sortRows work with custom sorting routine ??
It works exactly the same as default sourting routine, you can use
grid.sortRows(1,“int_custom”,“asc”);
>>I tried it AFTER loadXML
loadXML is async., you need to call code only after data loaded ( second parameter of loadXML command or onXLE event )