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
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