I have a datagrid function with a loader: jQuery.ajax......
The datagrid is only build in javascript, no HTML classes invoking easyui to build the grid.
The function to generate the datagrid is called a single time, but the ajax call fires three times......
// Function only called once....
function generateGrid(){
jQuery(idObject.id_overview_table).datagrid({
sortName: 'examinationDate',
idField: 'sourcedId',
textField: 'label',
pagination: true,
fitColumns: true,
striped: true,
rowNumbers: true,
pageSize: 10,
pageList: [50,100,250,1000],
toolbar: '#pfx_toolbarOverviewGrid',
loader: function(param,success,error){
jQuery.ajax({
url: 'ajax?action=getOverviewInoe',
type: 'GET',
success: function(data,textStatus, jqXHR){
success(data);
}
});
}
}
Where can I look, I just can't see the cause.