Hi! How to re-sort the DataTable after updating binding DataCollection?
Sorry, http://forum.webix.com/discussion/3620/sorting-tables-with-dynamically-loaded-branches#latest
But I’m interested in how to find the type of column (int, string). I settable column type by initialization DataTable. it is necessary forfFunction sort().
We plan to fix it in the next updates, so datatable will preserve its scrolling and filtering automatically.
As for now you can use second parameter of sync command
dtable.sync(collection, function(){
var sort = dtable.getState().sort;
if (sort)
dtable.sort( sort.by, sort.dir );
});
Thank U! But sorting cells “int” as “string” is incorrect . You must specify the 3 parameter of the function sort() (‘string’ as default). Is it possible to get the sorting type of the column?
You can use
var sort_type = this.getColumnConfig(sort.by).sort