Crud opration with sql server.

I'm try to create gantt chart project but having issue with assembly. so could be share the source code of gantt chat.

5 Replies

KR Karthikeyan Raja Syncfusion Team February 13, 2020 02:03 PM UTC

Hi Projectier,  
  
Thanks for contacting Syncfusion support.  
 
We have checked your reported requirement and please find the below steps for create Gantt application. 
Step1: Create a MVC project   
Step 2: Add the Syncfusion required DLL’s in Reference section like as follows,           
   
Step 3: We should add the necessary Scripts and themes folders to render the Gantt control. So please add the scripts and themes folders like as follows,    
Screenshot of themes:     
        
  
Screenshot of scripts:    
    
   
   
Step 4: Webconfig Page    
 [web.config]    
<compilation debug="true" targetFramework="4.5" >    
    <assemblies>    
                <add assembly="Syncfusion.EJ, Version= XX.XXXX.X.XX, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />    
                <add assembly="Syncfusion.EJ.MVC, Version= XX.XXXX.X.XX, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />    
    </assemblies>    
</compilation>    
                                   //…   
<namespaces>                
        <add namespace="Syncfusion.MVC.EJ" />   
      </namespaces>   
   
Step5: We should refer the necessary scripts and themes in header section of view page like below.   
   
<head>   
<title>Essential Studio for JavaScript : Gantt</title>   
    <script src="~/Scripts/scripts/jquery-3.2.1.min.js"></script>   
    <script src="~/Scripts/scripts/jsrender.min.js"></script>   
    <script src="~/Scripts/scripts/ej.web.all.min.js"></script>   
    <link rel='nofollow' href="~/Content/ejthemes/default-theme/ej.web.all.min.css" rel="stylesheet" /></head>   
   
Step 6: Define the Gantt control in View page    
[cshtml]   
        @(Html.EJ().Gantt("GanttContainer")   
            .TaskIdMapping("TaskID")   
            .TaskNameMapping("TaskName")   
            .StartDateMapping("StartDate")   
            .DurationMapping("Duration")   
            .ProgressMapping("Progress")   
            .ScheduleStartDate("02/01/2014")               
            .ScheduleEndDate("03/14/2014")   
            .ChildMapping("SubTasks")              
            .EnableContextMenu(true)   
            .AllowGanttChartEditing(true)   
            .PredecessorMapping("Predecessor"   
            .ToolbarSettings(toolbar =>   
                   {   
                       toolbar.ShowToolbar(true);   
                       toolbar.ToolbarItems(new List<GanttToolBarItems>()   
                       {   
                           GanttToolBarItems.Add,   
                           GanttToolBarItems.Edit,   
                           GanttToolBarItems.Delete,   
                           GanttToolBarItems.Update,   
                           GanttToolBarItems.Cancel,   
                           GanttToolBarItems.Indent,   
                           GanttToolBarItems.Outdent,   
                           GanttToolBarItems.ExpandAll,   
                           GanttToolBarItems.CollapseAll,   
                                  });   
                   })   
            .EditSettings(edit =>   
            {   
            edit.AllowEditing(true);   
            edit.AllowAdding(true);   
            edit.AllowDeleting(true);   
            edit.AllowIndent(true);   
            edit.EditMode("cellEditing");   
            })   
            .AllowSorting(true)   
            .AllowMultiSorting(true)   
            .ResourceInfoMapping("ResourceID ")   
            .ResourceNameMapping("ResourceName ")   
            .ResourceIdMapping("ResourceID ")   
            .Resources(ViewBag.resources)   
            .Datasource(ViewBag.datasource)               
            )   
    @(Html.EJ().ScriptManager())   
   
Please refer to the following help documentation and our online demo samples for further reference   
   
We need to refer Syncfusion.EJ and Syncfusion.EJ.MVC dlls alone to render the Gantt control in ASP.NET MVC.As per your webconfig.  
 
We have already have KB documentation for Gantt CRUD operation with SQL server  
 
We have already have KB documentation for Gantt CRUD operation with Entity framework  
  
 Regards, 
 Karthikeyan Raja 



PR Projectier May 19, 2020 09:01 AM UTC

Thank a ton


PP Pooja Priya Krishna Moorthy Syncfusion Team May 20, 2020 04:39 AM UTC

Hi Projectier, 
Most Welcome. 
Please get back to us if you would require further assistance on this. As always, we will be happy in assisting you. 

Regards, 
Pooja K. 



PR Projectier May 20, 2020 06:32 AM UTC

Hello Pooja ma'am,

Can you check below query with ID. have a problem with gantt chart adjustable with different size of screen.

Thread ID: 154395



PP Pooja Priya Krishna Moorthy Syncfusion Team May 21, 2020 05:34 AM UTC

Hi Projectier, 
We have updated the solution in the forum with id 154463. Please follow that forum for further updates regarding this query. 

Regards, 
Pooja K. 


Loader.
Up arrow icon