:: Forum >> Version 1 >>

Disable Column Resize

More information on this topic is available in the documentation section: /active.howto.style.columns/column-width.html.

How do I disable the resizing functionality?
Bill Smith
Tuesday, August 30, 2005
Alex, you are the best one to answer this....

I have some checkbox templated cells in my grid (say, columns 5 and 6) and I don't want them to be resizable because the widths of the columns are only about 5 pixels wide....

I want the entire column's checkboxes to toggle when the header is clicked... kind of like a "de/select all" button represented by the header for columns 5 and 6.

So, with the columns being 5 pixels wide, you have a VERY small spot on the header to click without getting the resize cursor to resize the column...

Is it possible to disable the resizing cursor all together on the borders between columns 4 & 5, then 5&6, and lastly between 6&7?

John Mason
Tuesday, December 5, 2006
Alex, you are the best one to answer this....

I have some checkbox templated cells in my grid (say, columns 5 and 6) and I don't want them to be resizable because the widths of the columns are only about 5 pixels wide....

I want the entire column's checkboxes to toggle when the header is clicked... kind of like a "de/select all" button represented by the header for columns 5 and 6.

So, with the columns being 5 pixels wide, you have a VERY small spot on the header to click without getting the resize cursor to resize the column...

Is it possible to disable the resizing cursor all together on the borders between columns 4 & 5, then 5&6, and lastly between 6&7?

John Mason
Tuesday, December 5, 2006
The simplest would be just hide separator div -

<style>

#myGrid-separator-0,
#myGrid-separator-{
    
displaynone;
}

</
style>
<
script>

    var 
obj = new AW.UI.Grid;
    
obj.setId("myGrid");
...
</
script>
 
Alex (ActiveWidgets)
Wednesday, December 6, 2006
HI its not woking
sunilchai
Saturday, January 6, 2007
Hi,

Try this:

#myGrid .aw-grid-separator {display: none;}

JP
Tuesday, February 27, 2007
Starting with AW 2.0.2 it is possible to disable column resizing with setColumnResizable() method -

grid.setColumnResizable(false0); // disable resizing the first column
 
Alex (ActiveWidgets)
Tuesday, February 27, 2007



This topic is archived.

Back to /active.howto.style.columns/column-width.html

Documentation:

Forum search