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

Empty Grid div in ajax reponse

Thread ID:





127085 Oct 25,2016 11:56 AM UTC Oct 27,2016 01:57 AM UTC ASP.NET MVC 1
Tags: Grid
indrani Gajjarapu
Asked On October 25, 2016 11:56 AM UTC


I have two grids in a partial view, which are supposed to be updated on button click.

I am making an ajax call and trying render the html of the container div in success.

object in the controller is getting the data. However, response in the success function is returning the div's of two grids as empty.

I have tried all the solutions in the following link...But didn't work


I have also tried to return json as below. The grid content is changing as expected but not the Columns.

I have attached screenshots of ajax call and response alert.

var query = new ej.Query().addParams("Index", index).addParams("Value", value).addParams("data", grade).addParams("FineGrade", fineKey.toString()).addParams("FineValue",fineVal);
        var ResultsGrid = ej.DataManager({ url: "/School/ResultsData", adaptor: new ej.UrlAdaptor() });
        var promise = ResultsGrid.executeQuery(query);
        promise.done(function (e) {

Attachment: grid_509c0ad1.zip

Karthick Kuppusamy [Syncfusion]
Replied On October 27, 2016 01:57 AM UTC

Hi Indrani, 
Thanks for Contacting Syncfusion support. 
We have analyzed the issue that you have mentioned. For your convenience, we have created a simple sample with partial view to repopulate the data within the div using the ajax call.Please find the code example as below.  
[In index.cshtml] 
<div id="main"> 
@Html.EJ().Button("click").Text("Render Grid").Render() 
<script type="text/javascript"> 
    $("#click").click(function () {         
                    url: "Home/Productpartial", 
                    type: 'GET', 
                    success: function (data) {                        
[In controller] 
        public ActionResult Productpartial() 
            var DataSource = new NorthwindDataContext().EmployeeViews.ToList(); 
            ViewData["datasource"] = DataSource; 
            return PartialView("_partial",ViewData); 
Could you please share the following details to us it would be helpful for us to find the solution at earliest. 
1.Please reproduce the issue in the attached sample and revert back to us if possible or share more information to reproduce the issue at our end. 
2.Did you faced any script error if any please share the screenshot . 


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