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
60
Cell AutoHeight
posted

Hi,

We are using WebHierarchicalDataGrid grid in Infragistics Version 13.1. We want the cell height to be auto adjustable so that it can accommodate all the cell contents keeping cell width to be constant.

AS an example, suppose I have this value in my Media Column: “Media1, Media2, Media3, Media4, Media5”.

Now if had kept the cell height and width to be constant it will wrap the text and will display: “Media1, Media2…” but we want that it should adjust the height as per cell contents and my display should be like this:

 

Media

Media1, Media2,

Media3, Media4,

Media5

 

Please let us know how we achieve this?

 

Just to let you know, we were using Dev Express grid earlier before upgrading to Infragistics and it had a property which allowed us this feature:

this.gridView.OptionsView.RowAutoHeight = true;

Parents
No Data
Reply
  • 10240
    posted

    Hi rmsdev,

    Upon adding the grid to the page, the default settings of the grid (unless otherwise changed in properties), is such that the contents of a grid cell will wrap to the next line. So, by this, the column cell width remains constant, and the cell height will auto size to accommodate the text of the cell.

    I have provided an example for your reference.

    If you are finding a different behavior, please provide an example that demonstrates the behavior or modify my sample attached here, such that it reproduces the behavior, and re-attach to this thread. I will then look further into this matter for you.

     

    thanks!

    **Please note that I omitted the style sheets due to file size constraints. For proper styling of the grid you will need to bring the ig_res folder back into the project. You can do this by opening the project in the designer and select 'OK' when prompted to accept the sytle sheets.

    WHDG_cellHeight.zip
Children