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.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

How to restrict the splitter resizing in Gantt

Platform: jQuery |
Control: ejGantt

In Gantt, the splitter line separates the tree grid and timeline views, and user can set position for this splitter at the initial load. It is also possible to restrict the splitter resizing in Gantt by using the create client-side event.

User can define the position for the splitter at initial load either by using splitterSettings.position or by splitterSettings.index properties.

splitterSettings.position property allows the user to define the splitter position in percentage or pixel values of the Gantt container’s width. splitterSettings.index property allows the user to define the splitter position based on the treegrid’s column index.

<div id="GanttContainer" style="height:450px;width:700px"></div>
<script type="text/javascript">
        create: function () {

The below screen shot depicts the splitter position set at 170px of the Gantt’s width Set splitter position and restrict the splitter resizing.

You can also find a sample to set the splitter position and to restrict the resizing here.

You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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