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 use class files that are described in the documentation "/ Gantt / Getting Started"?

The documentation for `Step 6` and later uses class files:
  - `gantt.cs`;
  - `bindingdata.cs`
  - `mappingfields.cs`
  - `definingcolumns.cs`

1. How to use these classes?
2. How to create a Gantt chart?


1 Reply

GA Gurunathan A Syncfusion Team August 7, 2019 09:20 AM UTC

Hi Ivan, 
 
Greetings from Syncfusion support. 
 
No 
Queries 
Syncfusion Comments 
 
1 
 
 
How to use these classes? 
`gantt.cs`; 
`bindingdata.cs` 
`mappingfields.cs` 
 `definingcolumns.cs` 
 
These are the controller files used to provide the data source to Gantt. This files not related to each other file. This are specific to the topic where it is mentioned.  
 
Please find the code snippets of example controller file with view name as Index. 
 
 
public class HomeController : Controller 
    { 
 
        public IActionResult Index() 
        { 
            ViewBag.DataSource = ganttData(); 
            return View(); 
        } 
        //... 
    } 
 
 
 
2 
 
 
How to create a Gantt chart? 
 
 
We have prepared a simple Gantt sample by following the steps mentioned in UG documentation. In this, we have created the HomeController.cs file with Index.cshtml view page. Please find the sample from below link. 
 
 
 
Please get back to us if you require further assistance on this. 
 
Regards, 
Gurunathan 


Loader.
Up arrow icon