I'm trying to add functionality to the 'delete button'. I post an array with item id's by using Ajax. Selected items will be deleted. How do I call the 'reload' function after successful Ajax results?
Code:
function test(com,grid)
{
if (com=='Delete')
{
if(confirm('Delete ' + $('.trSelected',grid).length + ' items?')){
var items = $('.trSelected',grid);
var itemlist ='';
for(i=0;i<items.length;i++){
itemlist+= items[i].id.substr(3)+",";
}
$.ajax({
type: "POST",
dataType: "text",
url: "handler.php",
data: "action=delmultiple&items;="+itemlist,
success: function(text){
$("#flex1").flexReload();
}
});
}
}
else if (com=='Add')
{
alert('Add New Item');
}
}
[/quote]
Never mind, found the solution: it's in the flexigrid allready :red:[/quote]
Great job. I see you your starting to get it :-).
Still lots of API, documentation should be ready next week. Only can work on this on weekends.