Why, in particular, do Gantt's examples show an HTML syntax in the case of Asp. Net Core and Razor for Asp. Net MVC?


Core accepts the Razor syntax, but HTML is always used.
Core:
 id="ganttSample" datasource="ViewBag.datasource"
    task-id-mapping="Id"
    task-name-mapping="Name"
    start-date-mapping="StartDate"
    end-date-mapping="EndDate"
    duration-mapping="Duration"
    progress-mapping="PercentDone">
MVC:
@(Html.EJ().Gantt("Gantt").TaskIdMapping("TaskId")
              .TaskNameMapping("TaskName")
              .StartDateMapping("StartDate")
              .DurationMapping("Duration")
              .ProgressMapping("Progress")
              .ScheduleStartDate("02/01/2014")
              .ScheduleEndDate("03/14/2014")                                          
              .ChildMapping("SubTasks")
              .TreeColumnIndex(1)                                          
              .Datasource(ViewBag.datasource)
              )


1 Reply

SR Suriyaprasanth Ravikumar Syncfusion Team November 23, 2017 11:15 AM UTC

Hi Vallet, 
 
There are many advantages in using Tag Helpers in ASP.NET core such as an HTML-friendly development experience and a rich IntelliSense environment for creating HTML and Razor markup and more. And hence we have created samples using Tag Helpers in ASP.NET core. But it is also possible to render the Gantt with Razor syntax in ASP.NET core platform as your preference. 
 
Please let us know if you require any other assistance on this.   
 
Regards,   
Suriyaprasanth R.  


Loader.
Up arrow icon