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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Rendering a diagram in a partial view

Thread ID:





125539 Aug 23,2016 09:12 PM UTC Aug 25,2016 04:13 AM UTC ASP.NET MVC 3
Tags: Diagram
John Adkins
Asked On August 23, 2016 09:12 PM UTC

My UI consist of mostly partial views, most of it by Ajax requests.  I would like to render a diagram in a partial view either by ajax or by the controller return a partial view with viewdata model.  everything I tried my diagram is always blank but the model has data.  I'm missing something simple. Any suggestions? What is the best approach?  Any samples out there?

Shyam G [Syncfusion]
Replied On August 24, 2016 05:36 AM UTC

Hi John, 

We have created a sample with the partial view which renders diagram initially and at the runtime. 

Shyam G 

John Adkins
Replied On August 24, 2016 03:44 PM UTC

I believe I figured it out ... it was something very simple.

It seems I have to call  ej.widget.init after an ajax call or after a Html.RenderPartial

<script type="text/javascript"> 

    $(document).ready(function () {



Shyam G [Syncfusion]
Replied On August 25, 2016 04:13 AM UTC

Hi John, 
Please let me know if you need further assistance on this. 
Shyam G 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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