how to clear the following error
how to clear the following error
DataTables warning (table id = 'DataTables_Table_0'): Requested unknown parameter '0' from the data source for row 0
@model ECS.Models.UserViewModel
<a href="#" class="btn btn-info" onclick="AddNewUser(0)">Add New User</a> <br /><br />
Create A Popup Modal With Registration Form For Add Or Edit Student Record
</div>
<
script>
$("#LoadingStatus").html("Loading....");
$.get("/Home/GetUserDetails", null, DataBind);
function DataBind(UserList) {
//This Code For Receive All Data From Controller And Show It In Client Side
var SetData = $("#SetStudentList");
for (var i = 0; i < UserList.length; i++) {
var Data = "<tr class='row_" + UserList[i].UserId + "'>" +
"<td>" + UserList[i].UserId + "</td>" +
"<td>" + UserList[i].UserName + "</td>" +
"<td>" + UserList[i].EmailId + "</td>" +
"<td>" + UserList[i].Password + "</td>" +
"<td>" + "<a href='#' class='btn btn-warning' onclick='EditUserRecord(" + UserList[i].UserId + ")' ><span class='glyphicon glyphicon-edit'></span></a>" + "</td>" +
"<td>" + "<a href='#' class='btn btn-danger' onclick='DeleteUserRecord(" + UserList[i].UserId + ")'><span class='glyphicon glyphicon-trash'></span></a>" + "</td>" +
"</tr>";
SetData.append(Data);
$("#LoadingStatus").html(" ");
}
}