I'd like to be able to hide grid columns and then save the settings to a user profile. I can hide the columns on the client side just fine, but then on the next postback, the columns are back. Is it possible to persist the visible/hidden columns? I also would like this to be done without a postback.
Thanks,
Hi,
I have similar problem.
To resolve this I have created a java script function as followed.
grid.Bands[0].getColumnFromKey(colName).setHidden(true); //This line is giving error.
}
I am calling this method in InitializeLayout event handler in javascript as follows.
Please Note:
1. I am using DemandOnLoad=Xml
4. This works fine when I am binding data first time. But Error occurs when I select another data source from list and click on button.
5. Grid also have filters.
Can you please provide any work around for this or guide me for-
1. This works fine when i am binding data first time. I am binding the grid in button load event at server side.
I forgot to mention I was using the Callback Feature to get the column number on server-side.
thx.
This could be a page lifecycle thing, I guess it really depends on where you are using your code. Chances are that the grid is bound at a later point (after calling your UltraWebGrid1.Columns[ColumnID].Hidden= true; line). Databinding the grid essentially clears all columns and rows from the grid and all visual settings and starts from scratch.
Is it possible to move the code to a place where you are sure happens after databinding? This could be the PreRenderComplete event for example.
I have the same problem and can't fix this. First I hide a column on the client side:
then I hide the same column on the server side:
UltraWebGrid1.Columns[ColumnID].Hidden= true;
then I save the grid settings into the database.
But after a postback. I got the same look as before I start hide the column. So the column I hide is back visible. How can I prvent this
Yep, I will try to escalated that. Just wanted to let you know, that we have a great customer feedback form, where you can suggest feature request (or even new products) directly to our Product Management team. The link is here:
http://devcenter.infragistics.com/Protected/RequestFeature.aspx
PM regularly scans all feature requests submitted via this form and chances are that this will be included at one point in subsequent releases. We take customer feedback very seriously, and from what I am seeing, most if not all of our TODO list is based on features requested by customer.