Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2211
Positionining and windowstate Clientside
posted

 

Hello everyone -

I am having problems referencing a webdialogwindow from client side BLOCKED SCRIPT

function uwg_Forecast_CellClickHandler(gridName, cellId, button){

var x = document.form1.htmltxt_X.value;

var y = document.form1.htmltxt_Y.value;

var dialog = $find('<%= wdw_History.ClientID %>');

dialog.setLeft(x);

dialog.setTop(y);

webDialogWindow.set_windowState($IG.DialogWindowState.Hidden, false);

}

I am getting the js error object does not support this Property or method on dialog.setleft.

x and y are populated with numeric values.  Any incite would be greatly appreciated!!!

 Thanks -

Patrick

 

Update:

This code does not trigger an error but doesn't position the dialog window:

function uwg_Forecast_CellClickHandler(gridName, cellId, button){

var x = document.form1.htmltxt_X.value;

var y = document.form1.htmltxt_Y.value;

 

alert(
"x: " + x);

alert("y: " + y);

var dialog = $find('<%= wdw_History.ClientID %>');

document.getElementById('<%= wdw_History.ClientID %>').setAttribute("Left", x);

document.getElementById('<%= wdw_History.ClientID %>').setAttribute("Top", y);

dialog.set_windowState($IG.DialogWindowState.Normal);

//dialog.setLeft(x);

// dialog.setTop(y);

 

//webDialogWindow.set_windowState($IG.DialogWindowState.Hidden, false);

}

Parents Reply Children
No Data