Appearance and Styling

19 Sep 20171 minute to read

You can customize the look and feel of the TreeGrid control by applying themes.

The following are the available themes in TreeGrid control.

  1. Flat Azure                
  2. Flat Azure Dark             
  3. Flat Lime                             
  4. Flat Lime Dark                  
  5. Flat Saffron                       
  6. Flat Saffron Dark
  7. Gradient Azure
  8. Gradient Azure Dark
  9. Gradient Lime
  10. Gradient Lime Dark
  11. Gradient Saffron
  12. Gradient Saffron Dark
  13. Bootstrap
  14. High contrast
  15. Material theme
  16. Office 365

You can apply the theme (Gradient lime) to the TreeGrid control by using the style sheet from the online link as follows.

  • HTML
  • <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    	<head>
    
    	<title>Getting Started with TreeGrid Control for JavaScript</title>
    
    	<!-- style sheet for default theme(gradient lime) -->
    	<link href=" http://cdn.syncfusion.com/25.1.35/js/web/flat-azure/ej.web.all.min.css" rel="stylesheet">
    
    	//...	
    	</head>
    	
    </html>

    The following screenshot shows the TreeGrid control with Gradient-lime theme.