visible columns json

2 posts, 0 answers
  1. Pankaj
    Pankaj avatar
    10 posts
    Member since:
    Feb 2016

    Posted 19 Oct 2016 Link to this post


    I have a requirement where i want only visible columns json data send to server. This is so because user will have ability to hide columns client side. Requirement is create excel at server side with only visible columns.



  2. Vasil
    Vasil avatar
    1642 posts

    Posted 20 Oct 2016 Link to this post

    Hello Pankaj,

    If you are using the client side export, it will work out of the box as shown here:

    If you are using this method for server side export:
    You may just loop the columns and serialize only the visible one. See the highlighted part of the code in the link above.
    var visibleColumns = [];
    jQuery.each(columns, function (index) {
      if(!this.hidden) {

    It is pretty much the same for the dpl example:

    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Back to Top