Finally I ended up to not to go with igDialog instead I used jquery dialogbox.
I found that jquery dialogbox is having same issue but there is a solution. On button click I have removed the script tag by finding it from dialogbox before opening it and everything works well.
$("#btnOpen").click(function () {
$("#DivPickInstr").find("script").remove(); //Did the trick hope this help some one 🙂
$("#DivPickInstr").dialog({
model: true,
height: 650,
width: 950,
resizable: false,
});
});
Thank you,
Dharmendra Mistry