Re: AjaxGrid/AjaxGridNavBar question

From: Chuck Hill (chil..lobal-village.net)
Date: Tue Mar 22 2011 - 21:46:04 UTC

  • Next message: Mike Gargano (JIRA): "[OS-JIRA] Created: (WOL-1206) When generating migration code for PostgreSQL models with doubleNumber prototype attribute creates invalid code"

    On 2011-03-22, at 2:44 PM, Tim Worman wrote:

    > On Mar 22, 2011, at 2:39 PM, Chuck Hill wrote:
    >
    >>
    >> On Mar 22, 2011, at 2:20 PM, Tim Worman wrote:
    >>
    >>> In my AjaxGrid config data I have defined css for some of my grid columns to make sure that they do not wrap their content. So, for a column foo in my config data I have set the cssStyle key to include:
    >>>
    >>> white-space:nowrap;
    >>>
    >>> The result is that the grid is now rendered wider than the nav bar width. I've looked at AjaxGridNavBar and I can't see how it's width is determined. Is there a way I can stop this easily?
    >>>
    >>> I should also disclose that I am using a sub-classed AjaxGrid so that it is a single-selection grid for selecting a master object to edit.
    >>
    >>
    >> You could try setting a fixed width for both. They are separate components, so only the CSS ties them together.
    >>
    >>
    >> Chuck
    >
    > Thanks Chuck.
    >
    > Yeah, I may resort to that. I was hoping there was a magical way the grid component was informing the nav component of its width and hook into that. The table looks really bad with wide columns if the cell contents wrap.

    Yes, some data needs some fancy CSS to make it pretty. You can also put a div around the grid with overflow:auto; to make it create a horizontal scroll bar.

    Chuck



    This archive was generated by hypermail 2.0.0 : Tue Mar 22 2011 - 21:46:39 UTC