Author Topic: after hiding the columns how to get the remaining columns?  (Read 983 times)

edasilv

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 13
    • View Profile
after hiding the columns how to get the remaining columns?
« on: October 27, 2021, 03:24:00 am »
How to get the remaining columns values and row values after hidden columns?
I do not edit or delete cells, rows, and columns, just hidden columns.



paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: after hiding the columns how to get the remaining columns?
« Reply #1 on: October 27, 2021, 09:38:43 pm »
Columns.reduce API can be used to get new colModel without hidden columns.

https://paramquery.com/pro/api#method-Columns

Code: [Select]
var colModel2 = grid.Columns().reduce(function(column){
return column.hidden? null: column; //column.hidden is true for hidden columns.
});