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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What resources and dlls

Thread ID:

Created:

Updated:

Platform:

Replies:

121685 Jan 15,2016 10:44 PM UTC Jan 18,2016 05:25 PM UTC ASP.NET MVC 1
loading
Tags: Gantt
Trav
Asked On January 15, 2016 10:44 PM UTC

Hi, i have a quick question on rendering Gantt in child views.

Could you tell me, what resources should be added for Gantt the js and styles, in child views and heads
and what css classes needed to be added to Gantt, and what div containers,  

how is the selection happening, what the order of containers, and css selectors, 
what would I need to do to ensure that the css is surely applied regardless of any 3rd party theme.

thanks
Taz Ky

Jayakumar Duraisamy [Syncfusion]
Replied On January 18, 2016 05:25 PM UTC

Hi Taviz,
Query 1what resources should be added for Gantt the js and styles, in child views and heads
Solution:

<head>

<!— Basic Script files to render Controls -à

    <script src="~/Scripts/ej/jquery-1.10.2.min.js"></script>

    <script src="~/Scripts/ej/jquery.easing.1.3.min.js"></script>

    <script src="~/Scripts/ej/jsrender.min.js"></script>    

    <script src="~/Scripts/ej/ej.web.all.min.js"></script>


<!— Basic CSS files for style purpose -à

    <link rel='nofollow' href="~/Content/ej.theme.min.css" rel="stylesheet" />

    <link rel='nofollow' href="~/Content/ej.widgets.core.min.css" rel="stylesheet" /> 
</head>

Query 2: what css classes needed to be added to Gantt, and what div containers

Solution:  
                There is no need to specific any classes to render Gantt but we should specific id which is used in the script.
<body>
     <div id="Gantt" style="width: 100%; height: 450px;">
</body>

@(Html.EJ().Gantt("Gantt ")   

    .TaskIdMapping("TaskID")

    .TaskNameMapping("TaskName")

    .ChildMapping("SubTasks")

    .StartDateMapping("StartDate")

    .EndDateMapping("EndDate")

    .DurationMapping("Duration")

    .ProgressMapping("Progress")
     …..
)
Query 3: how is the selection happening, what the order of containers, and css selectors, 
what would I need to do to ensure that the css is surely applied regardless of any 3rd party theme.

Solution:  Gantt control render from “ej.theme.min.css” as mentioned early, so Gantt will not affect by any third party theme.
 
Please let us know if you require further assistance on this.

Regards

Jayakumar Duraisamy

CONFIRMATION

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.

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

;