Has anyone tried this?
initially i was declaring the dialog using mvc helpers but according to the documentation i can do that, so i have change it to using jquery,,,and i am trying to use the option move to top, but it is not workin...
Declaring the dialogs
function InitializeDialogs(){ $("#DialogBox_AddOrEdit_Hardware_To_Processo").igDialog({ height: "500px", width: "800px", state: "closed", headertext: "Processo", modal: true, draggable: false, resizable: false, closeonescape: true, showCloseButton: false }); $("#DialogBox_AddOrEdit_Processo").igDialog({ height: "500px", width: "800px", state: "closed", headertext: "Processo", modal: true, draggable: false, resizable: false, closeonescape: true, showCloseButton: false }); $("#DialogBox_Delete_Processo").igDialog({ width: "400px", state: "closed", headertext: "Eliminar Registos", modal: true, draggable: false, resizable: false, closeonescape: true, showCloseButton: false });}
so the dialog DialogBox_AddOrEdit_Processo is open, and then i want to press a button and open the dialog DialogBox_AddOrEdit_Hardware_To_Processo...
on the button click i am doing this
$("#DialogBox_AddOrEdit_Hardware_To_Processo").igDialog("open"); $("#DialogBox_AddOrEdit_Hardware_To_Processo").igDialog("moveToTop");
but the dialog still opens inside the other one...and not above...
What am i missing?
Thanks for the help
Hello Hugo,
It has being a while and yet it is worth to add to the thread.Pease notice all dialogs used are set as Modal (Modal : Sets gets modal state of dialog.)
Regarding the official API documentation : “If there are more than 1 modal igDialog, then last opened dialog wins and becomes on the top. Note: modal functionality is not supported when dialog is minimized or pinned, because that will trigger misbehavior. ” More info at: http://help.infragistics.com/jQuery/2014.1/ui.igDialog#options
Also please notice the moveToTop method has a description specifying the method moves not Modal dialog to the top:More info at:http://help.infragistics.com/jQuery/2014.1/ui.igDialog#methods
Thank you for the update. If you have any questions, please let us know.
thanks for the example, i will try and see if it resolves my problem...
Thank you for contacting Infragistics!
At the moment, using the information mentioned above, I am not able to reproduce the behavior. Please let me know the browser you are using as well as the html destination markup of the dialogs.
For reference you may also refer to the sample below:
http://jsfiddle.net/5JFhX/9/
If you have any questions, please let me know as well.