Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

ASPxGridView - How to hide a grid column on the client side without making a round-trip to the server

$
0
0

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

Added By: Mike (DevExpress Support) at: 8/25/2014 4:23:38 AM    

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.

Added By: Daniel Kaminski at: 11/21/2014 11:04:53 AM    

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

Added By: Marion (DevExpress Support) at: 11/23/2014 10:44:37 PM    

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.

Added By: Focoenobra Ltda at: 11/25/2014 8:25:04 AM    

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?

Added By: Gosha (DevExpress Support) at: 11/25/2014 12:36:18 PM    

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.

Added By: David Buitenveld 1 at: 1/31/2015 12:47:34 PM    

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 PM    

Hello 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.

Added By: Petar Kosama at: 10/13/2016 2:34:04 AM    Hm, I tried it but I get an Exception in grid_HtmlRowPrepared because in this event I access another column and then.. Exception..

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.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>