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,
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
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?