We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can we change the default row height of 30px?

Thread ID:





129841 Apr 6,2017 02:37 AM UTC Apr 7,2017 04:20 AM UTC ASP.NET MVC 3
Tags: TreeGrid
Travis Beesley
Asked On April 6, 2017 02:42 AM UTC

Hi thereWe are using your MVC TreeGrid control, and it is really good for what we are trying to do.However each row in the grid has a lot of unnecessary white space, which we are trying to reduce so we can fit more information on the page at once.I see that each row has a default height of 30px.  How can we change this to another value, for example 20px, to reduce the total vertical size of the grid?Thank you!

Jayakumar Duraisamy [Syncfusion]
Replied On April 6, 2017 09:02 AM UTC

Hi Travis, 
Thanks for contacting Syncfusion support. 
In TreeGrid control we can specifies the height of rows by using “rowHeight” property. We can define the “rowHeight” value in integer and it will consider the value in terms of pixels 
We have prepared a sample and rendered TreeGrid rows in 20px height, please refer following code snippet, 
  .RowHeight(20) //Set Row Height 
Pease find the sample from below link. 
Please let us know if you require further assistance on this. 
Jayakumar D 

Travis Beesley
Replied On April 6, 2017 08:39 PM UTC

Thanks, that's great!

Jayakumar Duraisamy [Syncfusion]
Replied On April 7, 2017 04:20 AM UTC

Hi Travis, 
We are glad that your requirement has been met. Please let us know if you need any other assistance. 
Jayakumar D 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon