public DataTableConfigVm(string id, string ajaxUrl, IEnumerable <ColDef> columns)
 {
     AjaxUrl            = ajaxUrl;
     this.Id            = id;
     this.Columns       = columns;
     this.ShowSearch    = true;
     this.ShowPageSizes = true;
     this.TableTools    = true;
     ColumnFilterVm     = new ColumnFilterSettingsVm(this);
 }
 public DataTableConfigVm(string id, string ajaxUrl, IEnumerable <ColDef> columns)
 {
     AjaxUrl            = ajaxUrl;
     this.Id            = id;
     this.Columns       = columns;
     this.ShowSearch    = true;
     this.ShowPageSizes = true;
     this.TableTools    = true;
     ColumnFilterVm     = new ColumnFilterSettingsVm(this);
     AjaxErrorHandler   =
         "function(jqXHR, textStatus, errorThrown)" +
         "{ " +
         "window.alert('error loading data: ' + textStatus + ' - ' + errorThrown); " +
         "console.log(arguments);" +
         "}";
 }