I want to add Web Dialog Box as a pop up window. When i click to a link then the dialog box should appear.
I have written following code put but unable to add it to the Web dialog box
DialogWindow dialogWin = getDialogBox();
//header
DialogWindowHeader dgWinHeader = dialogWin.getHeader();
dgWinHeader.setCaptionText(
"Some Caption");
DialogButton dgMaxButton =
new DialogButtonMaximizeBox();
DialogButton dgMinButton =
new DialogButtonMinimizeBox();
DialogButton dgCloseButton =
new DialogButtonCloseBox();
dgWinHeader.getChildren().add(dgMaxButton);
dgWinHeader.getChildren().add(dgMinButton);
dgWinHeader.getChildren().add(dgCloseButton);
dialogWin.setWindowState(
"normal");
//how to add it to dialogWin object?
Hi,
you can show / hide the dialog window using JS on the client side.
The JS functions for Dialog window are in
resources/infragistics/scripts/igf_dialogwindow.js
I made a little sample for you.
It's in the attached file