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

TreeGrid with no header

Thread ID:

Created:

Updated:

Platform:

Replies:

131742 Jul 25,2017 05:04 PM UTC Jul 26,2017 11:11 AM UTC ASP.NET Web Forms 1
loading
Tags: TreeGrid
Giuseppe
Asked On July 25, 2017 05:04 PM UTC

Is it possible create  server side a treeGrid with no header?

I would like set no header server side because when i do by client side when the document is ready then the treeGrid position doesn't change and this is an undesidered behaviour and doesn't expand in the height in its container. Further if i change the css property manually to have the position and the height desidered then i the treegrid scroll bar doesn't apper correctly.

Jayakumar Duraisamy [Syncfusion]
Replied On July 26, 2017 11:11 AM UTC

Hi Giuseppe, 
Thanks for contacting Syncfusion support. 
We have analyzed your given requirement and we don’t have in-built support to hide TreeGrid header but we can achieve it by workaround to hide TreeGrid header at the client side.  
We have to hide the TreeGrid header colgroup & each th element once after rendered it. For that use create event to add the hidden class css property to hide column header of TreeGrid. 
Please refer following code snippet, 
<style> 
        .e-hide-col{ 
            display:none; 
        } 
    </style> 
<ej:TreeGrid ID="Treegrid" Create="create" 
</ej:TreeGrid>    
function create(args) { 
                 var $colheader = this.getHeaderTable().find('colgroup').find('col'), 
                     $header = this.getHeaderTable().find('tr').find('th'); 
 
                 $($colheader).addClass("e-hide-col"); 
                 $header.addClass("e-hide");                  
             } 
We have also prepared a sample for your reference. Please find the sample location as below, 
Please let us know, if you require 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.

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

;