Is it possible to limit the height of the Infragistics mesh?

I've tried Infragistics on this but they don't seem to understand what I'm asking and it takes a few days to get an answer, so please help!

I need to place an Infragistics web grid in a div or table cell. The grid size must match the size of the div or cell. If there is too much data to display, I need a grid to do my magic and add my own scrollbars.

So far I have achieved this using javascript and resizing every time the browser window changes. Unfortunately, when the page is refreshed (using AJAX) the grids are resized to default sizes for a second before fixing, but this is not acceptable to the client (or me for that matter).

It's annoying that width = 100% works, but height = 100%. I find it just pops out of the div or table (without even resizing the div, just expanding it).

I tried an article in KB that sets the height and width to 100% and the staffing rules for the table are layout: automatic, but that doesn't work.

UPDATE

I created a test project with a 500px high table, two rows (each 50% height) and two cells per row to get a 2 x 2 grid. If I set the Infragistics grid height to 100% inside a cell, it is perfect as long as you are not bind it to data. It then expands to make the table more than 500 pixels high.

I tried to put a 100% x 100% div in one of the cells and a grid in that. The table then stays at the correct size, but the grid grows in height to fit the row and exits the div and cell: --(

I am starting to wonder how effective Infragistics Web Elements are. They are certainly not as good as the Windows versions.

+1


source to share


4 answers


I solved it at the end by removing the doctype from the ASP.NET page. It looks like the path the grid is laid out does not work as expected with IE in standard mode. It looks like a problem with IE.



Infragistics said they are working on a new mesh that does not have these issues, but unfortunately does not yet have the flexibility of a standard mesh.

0


source


Have you tried just specifying width = 100% and eliminating the grid height specification entirely?



Another thought is to place the grid in the asp.net panel and place the panel in a div or table cell.

0


source


I had simillar problem with ComponentArt grids and if I can understand you then this might help.

I needed to constrain the height of the grid by placing it in my own Div, which was overflowing. So I had this:

Don't put the height on the grid at all.

Edit

You need to set the set to a specific height in your div which I think.

<table style="height:500px">
   <tr>
      <td>Cell 1</td>
      <td>Cell 2</td>
   </tr>
   <tr>
      <td>
         <div style="height:400px;overflow-y:scrollable"> <ingragists...>
         </div>
       </td>
       <td>Cell 3</td>
    </tr>
</table>

      

0


source


Have you tried it in an empty project without any custom controls, master pages, and inheritance? If there are no possible properties for this, I think you can make this assignment conditional code.

0


source







All Articles