mcintyre321/mvc.jquery.datatables

Export disable property

rauntska opened this issue · 4 comments

Hello,
Thanks for the great work done with this!

I've got a question though. Im using the CSV,Excel,PDF export buttons. I have a hidden column which i must have, but i dont want to export. Is there some property attribute which skips the export for a particular property ?

  [DataTables(Visible = false)]
  public VACATIONS Vacation { get; set; }

Thanks!

Found it [DataTablesExclude] does the trick.

        [DataTablesExclude]
        [DataTables(Visible = false)]
        public VACATIONS Vacation { get; set; }

Hey,
using it with MVC5. Works great :) !

I like the paging feature especially. Super easy implementation and usage.