Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1115
min-height to body of empty grid
posted

Hello,

we want to set a min-height to our empty grids (no rows). the "Done[Fertig]" "Cancel[Abbrechen]" buttons are missplaced, if there is only a new row (see screenshots) any idea how to do that?

setting a fixed height (e.g. height:300px ) is no option, because we want the grid to autoAdjustHeight after a row is added up to the number of rows set by paging.

http://1drv.ms/XbmGAh < - empty grid, buttons misplaced/not completely visible

http://1drv.ms/1pp7IQI < - this is how it should look like if it is empty. I set a fixed height, but we want the grid to grow in height when rows get added.

any idea?

Parents
No Data
Reply
  • 10685
    Verified Answer
    Offline posted

    Hello,

     

    I prepared a small sample ilustrating a possible approach. The important parts of the sample are setting the height to 100%, setting the required min-height directly to the scroll container (there is no property for this) and enabling the Responsive feature which makes sure the grid does not get its header and body columns misaligned when the vertical scrollbar appears.

    If you have any questions, please don't hesitate to ask!

    igGrid_Min-Max_Height.zip
Children