Hello!
I hide columns on client by Java Script. But exporting in Excel by UltraWebGridExcelExporter I receive all columns. How to make right export?
Thanks for answer
Hello Sergey,
You can try to hide the column on the server prior the export. It might help.
Thank you for answer. I hide columns on client by Java Script.
function setColumn(obj, key)
{
var ultraGrid = igtbl_getGridById("<%=WebGrid.ClientID %>");
ultraGrid.Bands[0].getColumnFromKey(key).setHidden(!obj.checked);
}
Next properties are set:
EnableViewState=true
ViewStateMode=Enabled
But exporting in Excel by UltraWebGridExcelExporter I receive all columns. How to make right export?
Hello,
One possible approach is to hide columns before exporting it on server side using below line of code. Once columns are exported you can hide it again. this.UltraWebGrid1.Bands[0].Columns[0].Hidden = true;
Hope this helps.
Thanks,
Bhadresh