Hi…
We are using the following code to specify the display format for a date column of DTML grid.
var mygrid = new dhtmlXGridFromTable(“pressRoomGridBox”);
mygrid.setEditable(false);
mygrid.enableAutoHeight(true);
mygrid.enableResizing(“false,false”);
mygrid.setInitWidthsP(“20,80”);
mygrid.sortRows(0,“date”,“desc”);
mygrid.setSortImgState(true, 0, “desc”, 1);
mygrid.attachEvent(“onMouseOver”,function(ind){
return false;
});
With the above code sorting works perfectly fine for date column. But, We also need to use filter by option on some other attribute (column) for this grid. With filter by option, the sorting for date column stops working…For other attribute we have already overrided the defaut sorting. Only for this date column, we are relying on default sort method “date”…
<xsl:when test="$type = ‘‘decimal’’">
</xsl:when> xsl:otherwise
Kindly suggest How can we use default sort methods (date etc.), if we have already specified filtering on the grid…