cancel
Showing results for 
Search instead for 
Did you mean: 

Making Dialog Box stable in window

former_member190063
Participant
0 Kudos

Hi All,

I need to set the Dialog Box stable in the window.My requirement is user should not able to drag the dialog box.I have tried some jquery codes. But it is not working.

This dialog box opens when an event occurs.When  i run my application in IE or chrome, dialog box is coming fine.But I need to restrict the user while dragging.Dragging should not haapen for the user.Please suggest your ideas.



//

var messageDialog = new sap.ui.commons.Dialog("dialogId",

  {

  width :"350px",

  title :titleText,

  showCloseButton :false,

  modal : true,

  keepInWindow :true

  }).addStyleClass("myClass");

  var messageTextView = new sap.ui.commons.TextView({text : messageText});

  var okButton = new sap.ui.commons.Button({text: "Ok", press : function(){messageDialog.close();}}).addStyleClass("blueBtn");

  messageDialog.addContent(messageTextView);

  messageDialog.addButton(okButton);

  messageDialog.addStyleClass("objectiveCatalog");

  messageDialog.open();

View Entire Topic
0 Kudos

Did You find solution for that. I need to implement same functionality.....:)

Thanks Vishnu

former_member182862
Active Contributor
0 Kudos