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);
 }
Exemple #2
0
        public override string ToString()
        {
            var noColumnFilter = new FilterDef(null);

            this["aoColumns"] = _vm.Columns
                                // .Where(c => c.Visible)
                                .Select(c => c.Searchable?c.Filter:noColumnFilter).ToArray();
            return(new JavaScriptSerializer().Serialize(this));
        }