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

How to disable the Gantt chart splitter to prevent moving?

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 09:56 AM UTC

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 10:58 AM UTC

Fantastic - thanks Jayakumar - great support!

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

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.

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

;