Why is custom sort not enabled when I use 'setColSorting'?

Forum,

Given the following DHTMLXGrid requirements:

  1. overide the default sorting behavior for all columns
  2. provide a custom function, ‘myFunction’ that will make a server side call.

Code Snippet:
var myFunction=function(a,b,order){
alert(“My Server column”);
};

theGrid.setColSorting(“myFunction,myFunction”);

When I click any column headers, my custom function, ‘myFunction’ is not invoked…
the grid maintains it’s default sorting behavior…

Please tell me what I have overlooked…

Best,
netmille

a) custom sorting functions are supported only in pro version
b) you can check “connectors” library, which provides a ready to use wrapper , which can send info about requested sorting mode to the server.