Added toStringCallback option. Fixed datagrid parameters.

Fixed unit tests