sorting:
Unfortunately the issue cannot be reproduced locally.
The function works well for us.
If issue still occurs for you - pleases, provide with a complete demo, where the issue can be reconstructed.
Here you can find a tutorial: docs.dhtmlx.com/doku.php?id=othe … leted_demo
This why I thought there was a more concise way to set multiple column sorting.
But when I do not use the setCustomSorting and just try to call with setColSorting the header is clickable and has sorting arrows, but nothing happens.
For now: please, try to rename your custom sorting. at least 5 chars should be.
For example:
function istr_(a,b,order){
return (a.toLowerCase()>b.toLowerCase()?1:-1)*(order=="asc"?1:-1);
}
Such situation will be fixed. You may open ticket at support.dhtmlx.com so we’ll provide you a fixed version of dhtmlxgrid.js that allows to use short names of the sorting function.
What about xml.
everything is the same:
mygrid = new dhtmlXGridObject('gridbox');
function istr_(a,b,order){
return (a.toLowerCase()>b.toLowerCase()?1:-1)*(order=="asc"?1:-1);
}
mygrid.loadXML("../common/grid.xml");
...
<column width="100" type="ed" align="left" sort="istr_">Title</column>