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.

How to disable the Gantt chart splitter to prevent moving?

Thread ID:

Created:

Updated:

Platform:

Replies:

130188 Apr 26,2017 01:13 PM May 1,2017 01:14 AM ASP.NET Core 3
loading
Tags: Gantt
Mark Chidlow
Asked On April 26, 2017 01:13 PM

I'd like to prevent the user from moving the splitter. Is there a way to do this?

Jayakumar Duraisamy [Syncfusion]
Replied On April 27, 2017 05:56 AM

Hi Mark, 
 
Thanks for contacting Syncfusion support. 
 
We don’t have any API to prevent the splitterbar resize action but we can be achieved by work around. The Splitterbar resize action is performed only if it has “e-resize” class. Hence, we can remove it once after the control rendered by using “create” client side event. 
 
Please refer following code snippet, 
<ej-gantt id="ganttSample" datasource="ViewBag.datasource" 
              create="create" 
             > 
<script type="text/javascript"> 
           function create() { 
                $("span.e-splitbar").removeClass("e-split-divider e-resize"); //removed resize and hover classes 
            } 
</script> 
 
Please let us know if you need any other assistance. 
Regards, 
Jayakumar D 


Mark Chidlow
Replied On April 28, 2017 06:58 AM

Fantastic - thanks Jayakumar - great support!

Jayakumar Duraisamy [Syncfusion]
Replied On May 1, 2017 01:14 AM

Hi Mark, 
 
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.

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.

;