Hi,
This button click event failure is happening with many of my modal radwindows's but I explain a representative example.
I press a Menu Button ("Sign On") which brings up a RadWindow where the user may enter thre user id and password. If the user presses cancel the RadWindow is closed (window.Closed()) and disappears properly. I then press the sign on button again and nothing happens. I click it again and the RadWindow appears. An interesting point is that if I address stop on the click event the RadWindow will appear on the first click.
This also happens on RadButton clicks where the button is on the RadWindow form. In many instances more than two clicks are required. I also tried modeless windows but have the same problem.
It is almost like these windows are not actually be cleared out?
Thanks
Rich
This button click event failure is happening with many of my modal radwindows's but I explain a representative example.
I press a Menu Button ("Sign On") which brings up a RadWindow where the user may enter thre user id and password. If the user presses cancel the RadWindow is closed (window.Closed()) and disappears properly. I then press the sign on button again and nothing happens. I click it again and the RadWindow appears. An interesting point is that if I address stop on the click event the RadWindow will appear on the first click.
This also happens on RadButton clicks where the button is on the RadWindow form. In many instances more than two clicks are required. I also tried modeless windows but have the same problem.
It is almost like these windows are not actually be cleared out?
Thanks
Rich
<
telerik:RadMenu
Name
=
"radMenu"
Grid.Row
=
"0"
HorizontalAlignment
=
"Right"
>
<
telerik:RadMenuItem
Name
=
"menuSignOn"
Header
=
"Sign On"
Click
=
"menu_Click"
>
</
telerik:RadMenuItem
>
</
telerik:RadMenu
>
----- Create Window ------
#region SignOn
if (((RadMenuItem)source).Name == "menuSignOn")
{
String tabName = ((RadMenuItem)source).Header as String;
if (tabName == "Sign On")
{
this.signOnWindow.Content = new SignOn();
this.signOnWindow.Tag = this;
this.signOnWindow.Height = 200;
this.signOnWindow.Width = 325;
this.signOnWindow.Header = "Sign On";
this.signOnWindow.ResizeMode = ResizeMode.NoResize;
this.signOnWindow.WindowStartupLocation = Telerik.Windows.Controls.WindowStartupLocation.CenterScreen;
this.signOnWindow.ShowDialog();
}
else
{
RadMenuItem subMenu = SetMenuItem(this.radMenu, "menuFile", false);
subMenu = SetMenuItem(this.radMenu, "menuExecute", false);
subMenu = SetMenuItem(this.radMenu, "menuDesignMode", false);
subMenu = SetMenuItem(this.radMenu, "menuSignOn", true);
subMenu.Header = "Sign On";
}
}
#endregion SignOn
---- Close RadWindow ----
private void btnConnect_Click(object sender, RoutedEventArgs e)
{
// Put in code to call server to validate user
RadWindow window = RadWindow.GetParentRadWindow(this);
window.DialogResult = true;
window.Close();
}
private void btnCancel_Click(object sender, RoutedEventArgs e)
{
RadWindow window = RadWindow.GetParentRadWindow(this);
window.DialogResult = false;
window.Close();
}
--- Callback ----
#region signOnWindow_Closed
void SignOnWindow_Closed(object sender, WindowClosedEventArgs e)
{
if (e.DialogResult == null)
return;
RadMenuItem subMenu = SetMenuItem(this.radMenu, "menuFile", true);
SetSubMenuItem(subMenu, "menuSave", false);
SetSubMenuItem(subMenu, "menuSaveAs", false);
SetSubMenuItem(subMenu, "menuClose", false);
SetSubMenuItem(subMenu, "menuExport", false);
subMenu = SetMenuItem(this.radMenu, "menuExecute", false);
subMenu = SetMenuItem(this.radMenu, "menuDesignMode", false);
subMenu = SetMenuItem(this.radMenu, "menuSignOn", true);
subMenu.Header = "Sign Off";
}
#endregion signOnWindow_Closed