Multiple confirmation dialog opens

Hi there.

I am facing weird (at least for me) problem. I have a Grid window and when i want to delete some record multiple dhtmlx confirmation dialog box appears.

Let me explain a little by an example:

First i delete a record confirmation box shows up and if i click YES button it deletes record. There is no problem so far, however if want to delete another record confirmation box appears twice, when i want to delete another then box appears trice… and so on. If i delete 20 records confirmation box shows up 20 times and users thinks system not deleting any record.

If i refresh page then everything back to beginning.

I am attaching an Screen shot


Hi

Could you please provide us complete demo including all correspondnig js/css files?
Please also add information regarding current and expected behaviour.

Here is a small guide how to make a complete demo:
docs.dhtmlx.com/tutorials__auxil … pport.html

If you don’t want to share your demo here for any reasons - you can send it to support@dhtmlx.com, if so - please include link to this forum topic.

If you’re using PRO Edition please send your demo to support@dhtmlx.com

this is the code shows window which was attached to OP

[code]function deleteRecord()
{
var rowId = ACONLG.cells(ACONLG.getSelectedRowId(),ACONLG.getColIndexById("_id")).getValue();

        dhtmlx.confirm({
            title: "Are you sure ?",
            type:"confirm-warning",
            text: "Are you sure to delete selected record ?",
            ok:'Evet',
            cancel:'Vazgeç',
            callback: function(ok){
                if(ok)
                {
                    dhtmlxAjax.post("/api/contract/delete", "_id="+rowId, function(loader)
                    {
                        json_res = JSON.parse(loader.xmlDoc.responseText);

                        if(json_res['status']=='OK'){

                            ACONLG.deleteSelectedRows();
                            ACONLG.clearSelection();
                            ACONLTOOL.disableItem('viewrecord');
                            ACONLTOOL.disableItem('deleterecord');

                        }
                        else
                            dhtmlx.alert({ title:"Hata Mesajı",type:"alert-error",text:json_res['error_message'] });

                        ACONLW.progressOff();
                    });
                }
            }
        });
    }[/code]

I am also facing the same problem :angry:

Hi

Please provide us complete demo including all correspondnig js/css files not code snippet.