Hi,
I have a webgrid where I have a checkbox in the column header as well as in the detail rows. When the user clicks on the checkbox (check all) in the header I have a jv script that checks all checkbox in the detail rows. Since my webgrid has a lot of rows, it takes time to loop through. What I did was I added a modal webdialogwindow to display a wait message. But it does not seem to show the dialog box. Here is my code:
function global_clicked(control, ctrlgrid1) {
var oWebDialogWindow3 = $find('tbTest__ctl1_WebDialogWindow3'); oWebDialogWindow3.set_windowState($IG.DialogWindowState.Normal, true);
var grid = igtbl_getGridById(ctrlgrid1.id);
for (i = 0; i < grid.Rows.length; i++) { grid.Rows.getRow(i).getCellFromKey('test').getElement().children[0].checked = control.check; } oWebDialogWindow3.set_windowState($IG.DialogWindowState.Hidden); }
Thanks for your help!
Hi Sam,
I have the same problem. I have tried so many ways. Web dialog window does not show up at all.
Did you find the solution? If so, please provide the answer.
Thanks
I suggest you to debug by using any other control/htmlElement instead of WebDialogWindow. I think that result will be exactly the same.
If your function takes long time to execute and you want to modify/refresh html, then you may try to use another "thread".
(skipping validations for null, it may look like)var show = "$find('tbTest__ctl1_WebDialogWindow3').set_windowState($IG.DialogWindowState.Normal, true)";window.setTimeout(show, 0);...var hide = "$find('tbTest__ctl1_WebDialogWindow3').set_windowState($IG.DialogWindowState.Hidden)";window.setTimeout(hide, 0);