Quantcast
Channel: ASP.net MVC Awesome - jQuery Ajax helpers
Viewing all articles
Browse latest Browse all 345

New Post: Awesome grid not showing data on initial loading

$
0
0
Awesome grid not showing data on initial loading after clicking refresh button on the grid the data is showing. I am working on HTML 5
My code is Below

View

@(Html.Awe().Grid("Installation_grid")
.Url(Url.Action("GetInitialisationParameters", "Home"))
.Columns(new[]
{
        new Column { Name = "Variable", Header = "Variable",PercentWidth=20 },
        new Column { Name = "Description", Header = "Description",PercentWidth=20},

        new Column { Name = "Value", Header = "Value",PercentWidth=60}
})
    .ShowGroupBar(false)
    .Groupable(false)
    .PageSize(10)

    )

Controller

public ActionResult GetInitialisationParameters(GridParams gridParams)
    {


        HttpClient client = new HttpClient();

        HttpResponseMessage InitialisationParametersResponse = client.GetAsync(ConfigurationManager.AppSettings["WebApiUrl"] + "Initialisation").Result;


        ReqInstallationList = JsonConvert.DeserializeObject<List<Installation>>(InitialisationParametersResponse.Content.ReadAsStringAsync().Result);

        return Json(new GridModelBuilder<Installation>(ReqInstallationList.AsQueryable(), gridParams).Build());










    }

Viewing all articles
Browse latest Browse all 345

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>