Oct 04, 2012, 4:01 PM
[CLOSED] Changing cell content with javascript
Hello,
I have a function that adds a new row to a grid and calls another function that takes a few seconds to draw a path on a map.
I would like to show an ajax loading-gif in a specific column of the newly added row while the draw function is processing, and once finished I would like to show the actual cell content.
So after the method drawTour has finished, instead of XX there should be the old value again. I need to set back the old Value inside the drawTour function, so what do I need to pass and how can I refresh that cell to its old value then ?
I have a function that adds a new row to a grid and calls another function that takes a few seconds to draw a path on a map.
I would like to show an ajax loading-gif in a specific column of the newly added row while the draw function is processing, and once finished I would like to show the actual cell content.
function addData(record) {
var tourGrid= App.GridPanelActiveTours;
record.TourDescription = "<b>XX<b>";
tourGrid.store.insert(0, record);
drawTour(record.TourId);
}
XX is a placeholder for my ajax-gifSo after the method drawTour has finished, instead of XX there should be the old value again. I need to set back the old Value inside the drawTour function, so what do I need to pass and how can I refresh that cell to its old value then ?
Last edited by Daniil; Oct 09, 2012 at 10:41 AM.
Reason: [CLOSED]