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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





148802 Nov 5,2019 10:03 AM UTC Nov 6,2019 10:59 AM UTC JavaScript - EJ 2 1
Tags: TreeGrid
Asked On November 5, 2019 10:03 AM UTC

Hi, Can you pls share some examples to use Row spanning in ( javascript ES5 ) Treegrid?

Manivannan Padmanaban [Syncfusion]
Replied On November 6, 2019 10:59 AM UTC

Hi Saravanan, 

Greetings from Syncfusion Support. 

Query: Row spanning in ( javascript ES5 ) Treegrid 

We have achieved your requirement using the queryCellInfo event of TreeGrid by changing the rowSpan. Refer the below code example, 

 var treegrid = new ej.treegrid.TreeGrid({ 
        treeColumnIndex: 1, 
        queryCellInfo:function (args) { 
              if(args.data.taskID == 1){  
                if(args.column.field == "priority" ){ 
                  args.rowSpan = 3; 
              if(args.data.taskID == 6){  
                if(args.column.field == "priority" ){ 
                  args.rowSpan = 6; 
        columns: [ 
            { field: 'taskID', headerText: 'Task ID', width: 70, textAlign: 'Right' }, 
            { field: 'taskName', headerText: 'Task Name', width: 200, textAlign: 'Left' }, 
            { field: 'priority', headerText: 'Priority', width: 90 } 



Refer the below help documentation link, 

Please get back to us, if you need further assistance. We will be happy to assist you. 

Manivannan Padmanaban. 


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon