Here I am facing problem related to RadWindow in RadTabStrip with Contaxt Menu. As I have managed RadWindow Open functionality through code behind on Itemclick of Contaxt menu. On each click of contaxt menu in RadGrid I need to open RadWindow. But here once I open the RadWindow in one Grid through contaxt menu and after closing it when I go for next Tab then last radwindow load automatically.
This my code how I am managing radwindow thru code behind onItemclick of contaxt menu:
protected
void rcmFormContextMenu_ItemClick(object sender, RadMenuEventArgs e)
{
if (rtsEditEntity.SelectedTab.Value == "6")
{
int _formId = Convert.ToInt32(hiddenFormId.Value);
RadWindow rwForm = new RadWindow();
rwForm.ID =
"RadWindow1";
rwForm.NavigateUrl = "~/FormsViews/EditForm.aspx";
rwForm.VisibleOnPageLoad =
true;
rwForm.Modal =
true;
rwForm.Overlay =
true;
rwForm.Behaviors =
WindowBehaviors.Close;
rwForm.Width = 1000;
rwForm.Height = 650;
if (rwmForm.Windows.Count > 0)
{
rwmForm.Windows.RemoveAt(0);
}
rwmForm.Windows.Add(rwForm);
}
}
protected void rcmViewContextMenu_ItemClick(object sender, RadMenuEventArgs e)
{
if (rtsEditEntity.SelectedTab.Value == "5")
{
int _ViewId = Convert.ToInt32(hiddenViewId.Value);
RadWindow rwView = new RadWindow();
rwView.ID =
"RadWindow2";
rwView.NavigateUrl = "~/FormsViews/EditView.aspx";
rwView.VisibleOnPageLoad =
true;
rwView.Modal =
true;
rwView.Overlay =
true;
rwView.Behaviors =
WindowBehaviors.Close;
rwView.Width = 1000;
rwView.Height = 650;
if (rwmView.Windows.Count > 0)
{
rwmView.Windows.RemoveAt(0);
}
rwmView.Windows.Add(rwView);
}
}
I don't understand how it will happend?
Please assist me.
Thanks & Regards,
Kaushal Jani