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
200
Fixed header in the grid
posted

Hi,

I am using the 'igHierarchicalGrid'. I want grid scrolling to be enabled in such a way that Headers should not scroll up and get hidden. I have re-created the problem in a fiddle.

 Here is the link: http://jsfiddle.net/v4792czg/. You can see in the example that as we are scrolling down, the header of the Grid went up and we are no longer able to see it. How can i solve the issue.

The auto created div hierarchicalGrid_scroll has css property like
  overflow-y:hidden
  overflow-x:auto

In this post: http://www.infragistics.com/community/forums/p/86338/430596.aspx#430596 You have mentioned that grid has already fixed headers, but You can see in the example provided that SCROLL BAR of grid is not visible, how can this option help then
 

 Update: 1

Giving height in grid configuration is solving this problem, but I do not want to give height to grid, I want grid to take parent's height, because I do not want to give hard-coded heights. It should depends on available space

Update: 2 

a) If I calculate the available percentage of height and assigned it in grid config, Fixed header is working fine, but problem is Suppose there a few entries in grid, say 2 entries, then grid row height is getting auto adjusted to fll up the grid, causing row height to be more than 200px, if number of rows are large, then its fine

b) I tried to change the height of 'tr' element in my CSS files, but its not working

HOW CAN I FIX THE ROW HEIGHT? IF i can do this, all the problems will be solved.