Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143261 | Mar 12,2019 05:27 AM UTC | Mar 15,2019 05:21 AM UTC | JavaScript - EJ 2 | 3 |
![]() |
Tags: Grid |
$.ajax({
...
success: function (result) {
...
var grid = new ej.grids.Grid({
dataSource: result.listaBeneficiarios,
...
locale: "es-CO",
load: function (args) {
console.log("Need to define the load event handler");
}
});
grid.appendTo("#grdBeneficiarios");
},
...
});
|
<div id="Grid"></div>
<script>
var data = @Html.Raw(Json.Serialize(ViewBag.DataSource));
var dataSource = new ej.data.DataManager({
json: data,
adaptor: new ej.data.RemoteSaveAdaptor(),
insertUrl: '/Home/Insert',
updateUrl: '/Home/Update',
removeUrl: '/Home/Delete'
});
var grid = new ej.grids.Grid({
dataSource: dataSource,
...
});
grid.appendTo("#Grid");
</script>
|
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.
This page will automatically be redirected to the sign-in page in 10 seconds.