Is there an option to clean the data of an entire column (column not row)? · Issue #1072 · tonytomov/jqGrid (original) (raw)
I would like to clean the data of one or more columns but I can't find that functionality
ChatGPT gave me this option(but it does not take into account the frozen columns, footer row, and perhaps other features)
$("#miGrid").find("td[aria-describedby='myGrid_miColumn']").empty();
Another option would be(but I don't know how it will be in performance)
var ids = $("#myGrid").jqGrid('getDataIDs'); $.each(ids, function (index, rowid) { $("#miGrid").jqGrid('setCell', rowid, 'miColumn', ''); });
Does this functionality exist? or could it be a feature?