Saturday, 16 May 2020

Set fixed height to Kendo Grids

Hi,

We all know how great Kendo Controls works and the most famous one among all the controls is Grid.

Today l got an opportunity to work on Kendo Grid and my requirement was to set the Fixed height to the grid irrespective of the rows. Somehow I didn't get the below piece of the code/style to make the grid fixed easily and adding it here so that it would help others.

Just add the below to your CSS and it works. 


.k-grid .k-grid-content {
            min-height: 75%; /*Adjust Percentage as per your requirement*/
            max-height: 75%; /*Adjust Percentage as per your requirement*/
        }

Hope this helps.

--
Happy Coding
Gopinath

No comments:

Post a Comment