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:
alert("y: " + y);
document.getElementById('<%= wdw_History.ClientID %>').setAttribute("Left", x);
dialog.set_windowState($IG.DialogWindowState.Normal);
//dialog.setLeft(x);
// dialog.setTop(y);
//webDialogWindow.set_windowState($IG.DialogWindowState.Hidden, false);
Try this:
dialog.set_left(100);
dialog.set_top(200);
Your the man Sung! Got the job done with:
dialog.set_left(x);
dialog.set_top(y);
<%= wdw_History.ClientID %> :is required because the wd is in an ultrawebtab.
I was trying to find a list of members for the webdialogbox in the online documentation but all I could find were the get methods. Could you post a link to that documentation?
TIA -
Sung -
Tab style failing to load because of the following line:
If I change the code to:
var dialog = $find('wdw_History');
Tab style loads but I get a null ref exc. for dialog. Any ideas on how to fix this issue?
I have found a work around:
I grabbed the client side id manually by viewing the source of the page:
var dialog = $find('uwt_Nav__ctl2_wdw_History');
Why does the tab style get lost when using:
var dialog = $find('<%= wdw_History.ClientID %>'); ?
The set_left method does not seem to be documented as it may be for internal use just as the setLocation method of the DialogMoveBehavior object seems to be. I was able to find this method by doing a watch on the dialog object while debugging and just noticed that ur casing was off on one of the letters.
For your other issue, I would think that the reason the tab style not being loaded would be due to some error when trying to access the object. Have you checked the rendered id from the contents of <%=%>? Is it the same as the hardcoded value you are using now as a workaround?
Sung Kim"] Have you checked the rendered id from the contents of <%=%>? Is it the same as the hardcoded value you are using now as a workaround?
Have you checked the rendered id from the contents of <%=%>? Is it the same as the hardcoded value you are using now as a workaround?
That was the first thing I checked and it is the same value. All the other controls on the page maintain their style... Just the containing tab control is affected.
This does not seem to a known issue. Also, I did not have the issue when testing a dialog window in a tab in my 2008 Volume 2 sample. I would recommend that you submit a support issue with the errand page so they can look into that for you.
http://devcenter.infragistics.com/Protected/SubmitSupportIssue.aspx