:: Forum >>

Hiding a Column

I am finding that it takes about 20-30 seconds to hide a column in a grid with over 10,000 rows. I am using setColumnIndices() method and the setColumnCount() method. I am surprised, because I thought this would only impact the display and not be a function of the number of total rows. Am I missing something? Should I stop certain events from being called?

Joel
Tuesday, October 10, 2006
You can add the below css in your style tag to not to display the first column

.aw-column-0 {
WIDTH: 0px;
}

Sanjay Sharma
Tuesday, October 10, 2006
I need it to be dynamic - i hide columns after the grid is rendered via a widget - so it needs to be done with javascript.
Joel
Tuesday, October 10, 2006
Sanjay,

Thanks for your input. i'm using javascript to access the stylesheet and add rules. instead of changing the width, i'm changing style.display to none and inline. this is MUCH faster than using the columnindices!

Joel
Tuesday, October 10, 2006

This topic is archived.


Back to support forum

Forum search