You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 2, 2025. It is now read-only.
Im using the latest version of angular-datatables and, noticed that there's a double request with server side... I traced the error to the following snippet:
$timeout(function(){DTRendererService.hideLoading($elem);// Condition to refresh the dataTableif(oTable){varajaxUrl=options.sAjaxSource||options.ajax.url||options.ajax;console.info("Loading data! ");oTable.ajax.url(ajaxUrl).load();}else{oTable=DTRendererService.renderDataTableAndEmitEvent($elem,options,$scope);}},0,false);
For the moment i commented the timeout being applied... can you explain me why are you using $timeout (i understand that you're trying to force the rendering of datatables but removing the timeout has no repercussions) ?
PS: Ignore the 500 status... servers down...
The text was updated successfully, but these errors were encountered:
The $timeout is, as you said, used to execute the DataTable function after Angular has finished its digest.
In lots of data, you will notice that removing this $timeout will not render your table.
Can you define "lots of data" ? Since im using server side, the user will not get more than 100 rows per page. Do you mean expensive requests? Im not using sAjaxSource nor Object for "ajax" but a function. I define an option "ajax" that receives my custom function. This scenario was not contemplated? Finally, do you suggest a possible solution?
Hi,
Im using the latest version of angular-datatables and, noticed that there's a double request with server side... I traced the error to the following snippet:
For the moment i commented the timeout being applied... can you explain me why are you using $timeout (i understand that you're trying to force the rendering of datatables but removing the timeout has no repercussions) ?
PS: Ignore the 500 status... servers down...
The text was updated successfully, but these errors were encountered: