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.
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:

Created:

Updated:

Platform:

Replies:

129841 Apr 6,2017 02:37 AM UTC Apr 7,2017 04:20 AM UTC ASP.NET MVC 3
loading
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, 
@(Html.EJ().TreeGrid("Treecontainer") 
  //… 
  .RowHeight(20) //Set Row Height 
) 
Pease find the sample from below link. 
 
Please let us know if you require further assistance on this. 
Regards, 
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. 
Regards, 
Jayakumar D 


CONFIRMATION

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.

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

;