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

How to disable the Gantt chart splitter to prevent moving?

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

3 Replies

JD Jayakumar Duraisamy Syncfusion Team 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 



MC Mark Chidlow April 28, 2017 10:58 AM UTC

Fantastic - thanks Jayakumar - great support!


JD Jayakumar Duraisamy Syncfusion Team 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 


Loader.
Up arrow icon