public override string ToString() { var noColumnFilter = new FilterDef(null); this["bUseColVis"] = _vm.ColVis; this["aoColumns"] = _vm.Columns //.Where(c => c.Visible || c.Filter["sSelector"] != null) .Select(c => c.Searchable?c.Filter:noColumnFilter).ToArray(); return new JavaScriptSerializer().Serialize(this); }
public override string ToString() { var noColumnFilter = new FilterDef(null); this["aoColumns"] = _vm.Columns //.Where(c => c.Visible || c.Filter["sSelector"] != null) .Select(c => c.Searchable?c.Filter:noColumnFilter).ToArray(); return(new JavaScriptSerializer().Serialize(this)); }
protected internal ColDef(Type type) { Type = type; Filter = new FilterDef(Type); }