RadWindow does not display
-
I have a RadGrid using a standard grid hierarchy and am trying to open a RadWindow from within the OnItemCommand event when a radbutton column item is selected. When I select the button the code below does run (checked using a break point); however, the radwindow does not open and the radgrid itself appears to do a partial postback. Any Ideas why the rad window does not display? The code is as follows: protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == "ButtonEdit") { //opening window RadWindow newWindow = new RadWindow(); newWindow.ID = "RadWindow1"; newWindow.NavigateUrl = "Window1.aspx"; newWindow.VisibleOnPageLoad = true; RadWindowManager1.Windows.Add(newWindow); } } Also note, the RadWindowManager is valid as it is used elsewhere on the page with no problems. Thanks, Steve Holdorf
-
I have a RadGrid using a standard grid hierarchy and am trying to open a RadWindow from within the OnItemCommand event when a radbutton column item is selected. When I select the button the code below does run (checked using a break point); however, the radwindow does not open and the radgrid itself appears to do a partial postback. Any Ideas why the rad window does not display? The code is as follows: protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == "ButtonEdit") { //opening window RadWindow newWindow = new RadWindow(); newWindow.ID = "RadWindow1"; newWindow.NavigateUrl = "Window1.aspx"; newWindow.VisibleOnPageLoad = true; RadWindowManager1.Windows.Add(newWindow); } } Also note, the RadWindowManager is valid as it is used elsewhere on the page with no problems. Thanks, Steve Holdorf
Hi, You wrote that RadGrid seem to do a partial post-back. You may check it by looking to IsPostBack property... If this is true (and older RadGrid has it own ajax and used it to partial post back independently from your declarations) than setting VisibleOnPageLoad will not work (no pageload...). In that case you mast render some js to open the window... May I suggest something? Use client side js to open RadWindow...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is (V).