This example demonstrates how to hide a grid column on the client side without making a round-trip to the server.
To accomplish this task, apply a dummy CSS class ('unitPriceColumn') to all column cells (header, data, edit, footer, group footer, and filter cells) in markup. Then, to show/hide these cells, just specify their 'display' style. Set it to the 'none' value to hide cells and to the 'table-cell' value to show cells. To specify a cell display style, I used a jQuerry CSS selector (using the 'unitPriceColumn' CSS class).
Question Comments
Added By: marc parthoens at: 8/25/2014 4:20:36 AM
Can you show how I can get the value/text of a hidden column SERVER side.
Thanks
Hello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T143607: ASPxGridView - Get Hidden Column Value on Server Side. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.
I am duplicating this code in my project but I am getting this error http://screencast.com/t/NYB5i8prBLsu
Do you have any ideas what I need to do to fix it?
Thanks,
Daniel
Hello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T177485: ASPxGridView - How to hide a grid column on the client side without making a round-trip to the server. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.
Greetings:
I'm working with this example, but with a Grid which contains a GridViewBandColumn,, fixed column and a horizontal scroll. The columns hide correctly, but when I move the scroll, the columns are visible again.
Can you help me with this issue?
Hello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T178629: How to hide a grid column on the client side without making a round-trip to the server. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.
Hi, I am trying to implement this strategy in a project and it works as expected. But when I click the New link to add a row (grid goes into inline edit mode), the hidden column reappears. Any idea what I might have missed? I note that the grid's Init and EndCallback functions never seem to get called..
thanks -
David
Added By: Larry (DevExpress Support) at: 2/1/2015 11:09:56 PMHello David,
To process your recent post more efficiently, I created a separate ticket on your behalf: T203571: ASPxGridView - E4580 example - The EndCallback event is not called. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.
How could I solve this?
Thank you
Added By: Lex (DevExpress Support) at: 10/13/2016 3:27:52 AM
Hello Petar,
I've created a separate ticket on your behalf (T438787: ASPxGridView - Exception in the HtmlRowPrepared event handler). It has been placed in our processing queue and will be answered shortly.