In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
201 [In-Portal CMS] Admin Interfaces feature request N/A 2009-08-07 13:32 2009-10-03 07:57
closed 5.0.0  
none 5.0.1  
0000201: Ability to set default width for each grid column after clean installation
Currently we have ability to manually resize columns for each column in each grid. New column widths are automatically saved and are restored next time administrator will visit administrative console. Problem is, that after clean installation all columns have 100px width by default. For columns, that have long column headers this makes them wrap and makes overall height of column header row larger.

I propose to add new "width" option to grid column declaration in unit config (Grids -> Fields -> FieldName -> width). This option will only have effect, when administrator haven't visited given grid yet. After administrator manually changes column widths or just visits given grid this option will not have effect. This behavior exactly matches pattern, that we have after clean installation.
How to set correct width for the first time (do only once for this release only):
1. turn on "DBG_SHOW_PERSISTENTDATA" option in debug.php file.
2. set correct column width manually resizing columns.
3. open debugger and locate variable named like this: "<prefix.special>_columns_.".
4. copy displayed width values into appropriate unit config.
related to 0000232closed  (5.0.1)Dmitry Adjust default "Width" and "Order" for Columns in Grids 
Issue History
2009-10-03 07:57 administrator Note Added: 0000783
2009-10-03 07:57 administrator Status resolved => closed
2009-08-18 12:06 Dmitry Relationship added related to 0000232
2009-08-09 08:16 alex Fixed in Version => 5.0.1
2009-08-09 08:16 alex Note Added: 0000288
2009-08-09 08:16 alex Status reviewed and tested => resolved
2009-08-09 08:16 alex Resolution open => fixed
2009-08-09 08:16 alex Changeset attached 5.0.x r12248
2009-08-07 20:08 Dmitry Note Added: 0000274
2009-08-07 20:08 Dmitry Target Version => 5.0.1
2009-08-07 18:46 Dmitry Note Added: 0000270
2009-08-07 18:46 Dmitry Assigned To => alex
2009-08-07 18:46 Dmitry Status active => reviewed and tested
2009-08-07 13:32 alex New Issue

2009-08-07 18:46   
Sounds good, let's proceed.
2009-08-07 20:08   
Please add the functionality and I'll go through the sections/configs and specify the Sizes afterwords.
2009-08-09 08:16   
Fix committed to 5.0.x branch. Commit Message:

1. Fixes 0000201: Ability to set default width for each grid column after clean installation.
2. Done for "categories_config.php". Also removed leading "::" in design name.
2009-10-03 07:57   
Closing issues from 5.0.1 version, because version was already released.