3.2.0

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
October 10,
You can add the below css in your style tag to not to display the first column

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

Sanjay Sharma
October 10,
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
October 10,
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
October 10,

This topic is archived.

See also:


Back to support forum