EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
April 20, 2024, 04:29:39 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
succes updating datagrid, timing reload problem
Pages: [
1
]
« previous
next »
Print
Author
Topic: succes updating datagrid, timing reload problem (Read 7034 times)
Spike
Newbie
Posts: 22
succes updating datagrid, timing reload problem
«
on:
December 03, 2014, 04:28:13 AM »
Hello,
I have a small problem with timing the reload (refresh) of a Datagrid;
The URL in the $Ajax call updates the data in the MYSQL database
Everything is working fine but the grid reload is sometimes "refreshed" BEFORE the URL has done it's job.
How can I do the "reload" of the grid after I am sure the update of the URL php script has done it's work?
(when I do a refresh manually after 2 seconds the grid refreshes perfect....)
Thanx in advance,
Spike
function valideer_factuur(){
var row = $('#dg').datagrid('getSelected');
if (row){
$.ajax({
url : 'factuur_valideren.php?id='+row.id', // THIS UPDATES DATA BELONGING TO GRID
success: function(data) {
$.messager.alert('VALIDEREN ','NR : '+row.id+' <br> VALIDEREN SUCCES ');
$('#dg_hvs').datagrid('reload'); // reload the grid and data
}
});
}
}
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...