Sizing headers to include arrows

49 views Asked by At

How do I resize the columns in a grid to make enough space for the sort-direction arrows that appear when sorting by column?

Screenshot

When my grid loads, it currently resizes the columns to fit the text of the columns precisely. However, this does not leave enough room for the sort direction arrows that can appear, making them unable to be seen unless the column is manually resized. How can I set the default size of columns such that it includes space for these?

Keep in mind that the column sizes must still be relative to the length of the header text; a completely fixed width is not sufficient.

Please be advised that I am new to both ColdFusion as well as the code base in which I am working in. There may already be conflicting resizing functionality already being processed that I'm not aware of. Based on the way that the columns are already resizing, is there anything that the code may already be doing that I should be aware of?

1

There are 1 answers

1
Dan Bracuk On

Like this:

<cfgridcolumn header="Something" name="Something" width="some number">.

Just make sure the number big enough.