Hello,
When I try to add a diagram control into my page I get the following error :
Error CS1929 'IHtmlHelper<dynamic>' does not contain a definition for 'EJS' and the best extension method overload 'HtmlMVCExtension.EJS(HtmlHelper)' requires a receiver of type 'HtmlHelper'
This is the source code
<div id="diagram-space" class="sb-mobile-diagram"> @*Initialize Diagram control.*@ @(Html.EJS().Diagram("diagram").Width("100%").Height("600px") .GetNodeDefaults("nodeDefaults").GetConnectorDefaults("connectorDefaults") .DataSourceSettings((DiagramDataSource)ViewBag.DataSourceSettings) .Layout(l => l.Type(Syncfusion.EJ2.Diagrams.LayoutType.HierarchicalTree).VerticalSpacing(40)) .SelectionChange("selectionChange").SourcePointChange("connectionChange").TargetPointChange("connectionChange").SetNodeTemplate("setNodeTemplate") .SnapSettings(s => s.Constraints(Syncfusion.EJ2.Diagrams.SnapConstraints.None)).Render() ) </div>
This is obviously a configuration problem but I can't find where the reference is missing, all Nuget packages are up to date.
Have you an idea to fix the problem?
Thanks.