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

Get object in Javascript

Thread ID:





148389 Oct 17,2019 12:43 PM UTC Oct 18,2019 06:40 AM UTC ASP.NET MVC - EJ 2 1
Tags: Gantt Chart
Abhishek Singhal
Asked On October 17, 2019 12:43 PM UTC


I am using Asp .Net MVC helper as follows


Now how to get the gantt object in client side in Javascript ?

  var ganttObj = $("#GanttContainer1").ejGantt("instance") is giving error.

Kindly advise


Saranya Dhayalan [Syncfusion]
Replied On October 18, 2019 06:40 AM UTC

Hi Abhishek, 
Thank you for contacting Syncfusion support. 
We have checked your code snippet, we think that you are using pure JavaScript based Gantt (EJ2-Gantt). To take the instance of the Gantt control, please use the below code snippets. 
var ganttObj = document.getElementById('GanttContainer1').ej2_instances[0]; 
Kindly refer to the below documentation link to know more about EJ2 Gantt. 
Please get back to us if you require further assistance. 
Saranya D 


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