This is a migrated thread and some comments may be shown as answers.

[Solved] 2009 Q1 radsplitter and AjaxManager,...SplitterItemsCollection must contain SplitterItem objects

1 Answer 98 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Neal
Top achievements
Rank 1
Neal asked on 22 Jul 2009, 01:51 PM
Hi

using    2009 Q1

I get the error   "SplitterItemsCollection must contain SplitterItem objects "  when I try use the RadAjaxManager.
I checked the Forum answers (Lara) and the link given, downloaded the 4 examples (which won't compile in my app, even after changing the given  Directive  to 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

Also Tried an asp:Update Panl but that wont recognise  items   like RadPanelBar and RadMenu in it.

If i move the Ajaxmanager into the Splitter, it compiles/runs no error  but I get no "ajaxifying", or else the LoadingPanel is not firing. (nor do the  

 

<

 

ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />

My Code is beneath  (Markup and CodeBehind), so it will run as is.
THX
Neal



 

<%

@ Page Language="C#" AutoEventWireup="true"

 

 

CodeFile="DRMOperationsMngr.aspx.cs" Title="Ops manager" Inherits="Drm_OPSMainForm" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<%

--<%@ Register Src="Common/Header.ascx" TagName="Header" TagPrefix="uc2" %>

 

<%@ Register Src="Op_FooterTickerTape.ascx" TagName="Op_FooterTickerTape" TagPrefix="uc1" %>

--

 

%>

 

<%

@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0,

 

Culture=neutral, PublicKeyToken=31bf3856ad364e35"

 

 

 

 

Namespace="System.Web.UI" TagPrefix="asp" %>

 

 

<%

@ Register Assembly="Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

 

 

 

 

 

Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

 

 

 

<

 

html xmlns="http://www.w3.org/1999/xhtml" >

 

<

 

head id="Head1" runat="server">

 

 

 

 

 

<title>Contacts</title>

 

 

 

 

 

<link rel="stylesheet" type="text/css" runat="server"

 

 

href="~/App_Themes/SilverLine.css"/>

 

</

 

head>

 

 

<

 

body topmargin=0 leftmargin=0 scroll="no" >

 

 

 

 

 

<form id="form1" runat="server" >

 

 

 

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

 

 

 

</asp:ScriptManager>

 

 

 

 

 

 

 

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

 

 

 

<script type="text/javascript">

 

 

var currentLoadingPanel = null;

 

 

var currentUpdatedControl = null;

 

 

function RequestStart(sender, args)

 

{

currentLoadingPanel = $find(

"<%= RadAjaxLoadingPanel1.ClientID%>");

 

 

if (args.get_eventTarget() == "<%= RadPanelbar1.UniqueID %>")

 

{

currentUpdatedControl =

"<%= TopContentPanel.ClientID %>";

 

 

//show the loading panel over the updated control

 

 

 

 

currentLoadingPanel.show(currentUpdatedControl);

}

 

if (args.get_eventTarget() == "<%= RadPanelbar1.UniqueID %>")

 

{

currentUpdatedControl =

"<%= TopContentPanel.ClientID %>";

 

 

//show the loading panel over the updated control

 

 

 

 

currentLoadingPanel.show(currentUpdatedControl);

}

}

 

function ResponseEnd()

 

{

 

//hide the loading panel and clean up the global variables

 

 

 

 

 

if (currentLoadingPanel != null)

 

currentLoadingPanel.hide(currentUpdatedControl);

currentUpdatedControl =

null;

 

currentLoadingPanel =

null;

 

}

 

</script>

 

 

 

 

 

</telerik:RadCodeBlock>

 

 

 

 

 

 

 

<script language ="javascript" type ="text/javascript">

 

 

 

 

 

 

function Menu_OnClientItemClicked(sender, eventArgs)

 

{

}

 

function ClosePage()

 

{

 

if (!confirm('Are you sure you want to exit this Page?'))

 

{

window.location.href =

'javascript:void(0)'; //stay here

 

 

 

 

}

 

else

 

{

window.opener = self;

window.navigate(

"../../DRM_Main.aspx");

 

}

}

 

 

</script>

 

 

 

 

 

 

<div id="xx" runat="server" class="FormHdr" align="right"

 

 

style="position:absolute; width:100%; height:30px; top: 0px;">

 

 

 

 

 

<input id="Button2" class="CloseBtn" onclick="ClosePage()"

 

 

type="button" value="X" />

 

 

 

 

 

</div>

 

 

 

 

 

 

<div id="xxx" runat="server" class="FormHdr2"

 

 

style="position:absolute; width:100%; height:30px; left:0px; top:0px; text-align:center; vertical-align:middle" >

 

 

 

<asp:Label ID ="lblHdrBreadcrumb" runat="server" Text = "Operational Plan">

 

 

 

 

 

</asp:Label>

 

 

 

 

 

</div>

 

 

 

 

 

 

 

<div id="Main" style="position:absolute; top:30px; left:0px; width:100%; ">

 

 

 

 

 

 

<telerik:radsplitter id="RadSplitter1" runat="server"

 

 

Height ="900px" width="100%"

 

 

Skin="Telerik"

 

 

liveresize="true"

 

 

orientation="Vertical"

 

 

 

 

 

BorderColor="Transparent"

 

 

 

 

 

BorderSize="1"

 

 

 

 

 

BorderStyle="None" BackColor="Transparent">

 

 

 

 

 

<telerik:radpane

 

 

Height="99%"

 

 

 

 

 

id="navigationPane" runat="server"

 

 

MinHeight="500"

 

 

MinWidth="100" Width="150px"

 

 

BackColor="DimGray">

 

 

 

 

 

 

<asp:Panel ID="Panel1" runat="server">

 

 

 

 

 

<telerik:RadPanelbar ID="RadPanelbar1" runat="server"

 

 

Width="100%" PersistStateInCookie="True" >

 

 

 

 

 

<Items>

 

 

 

 

 

<telerik:RadPanelItem Text="DM" Height="50%" Width="100%"

 

 

Expanded="True" runat="server" CssClass="FrmHdrMnuGrdnt">

 

 

 

 

 

<Items >

 

 

 

 

 

<telerik:RadPanelItem runat="server" Selected="True"

 

 

CssClass="FrmHdrMnuGrdnt" Width="100%">

 

 

 

 

 

<ItemTemplate >

 

 

 

 

 

<telerik:RadMenu ID="Mnu_DmResources" BackColor="transparent"

 

 

 

 

 

runat="server" Flow="Vertical"

 

 

Width="100%"

 

 

OnItemClick="Mnu_DmResources_ItemClick">

 

 

 

 

 

<Items>

 

 

 

 

 

<telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy"

 

 

 

 

 

Text="RiskAreaMap" Width="100%">

 

 

 

 

 

<GroupSettings ExpandDirection="Down" />

 

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<%

-- <telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy"

 

Text="RolePlayers" Width="100%" >

<GroupSettings ExpandDirection="Down" />

</telerik:RadMenuItem>--

 

%>

 

 

<telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy"

 

 

 

 

 

Text="CheckLists" Width="100%" >

 

 

 

 

 

<GroupSettings ExpandDirection="Down" />

 

 

 

 

 

</telerik:RadMenuItem>

 

 

<telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy"

 

 

 

 

 

Text="Contacts" Width="100%">

 

 

 

 

 

<GroupSettings ExpandDirection="Down" />

 

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

 

<telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy"

 

 

 

 

 

Text="Documents" Width="100%">

 

 

 

 

 

<GroupSettings ExpandDirection="Down" />

 

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

 

 

<telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy"

 

 

 

 

 

Text="Logs" Width="100%">

 

 

 

 

 

<GroupSettings ExpandDirection="Down" Width="90px" />

 

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadMenu>

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

 

 

<telerik:RadPanelItem Text="RolePlayers" Expanded="True"

 

 

Height="50%" runat="server" CssClass="FrmHdrMnuGrdnt">

 

 

 

 

 

<Items>

 

 

 

 

 

<telerik:RadPanelItem runat="server">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<telerik:RadMenu ID="Mnu_RolePlayers" runat="server"

 

 

Flow="Vertical" Width="99%"

 

 

OnItemClick="Menu3_ItemClick">

 

 

 

 

 

<Items>

 

 

 

 

 

<telerik:RadMenuItem runat="server"

 

 

BackColor="transparent" ForeColor="Navy"

 

 

 

 

 

Text="TaskChecklist" Width="100%">

 

 

 

 

 

<GroupSettings ExpandDirection="Down" Width="90px" />

 

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

 

<telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy"

 

 

 

 

 

Text="Contacts" Width="100%">

 

 

 

 

 

<GroupSettings ExpandDirection="Down" Width="90px" />

 

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

 

<telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy"

 

 

 

 

 

Text="Documents" Width="100%">

 

 

 

 

 

<GroupSettings ExpandDirection="Down" Width="90px" />

 

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadMenu>

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadPanelbar>

 

 

 

 

 

</asp:Panel>

 

 

 

 

 

 

</telerik:RadPane>

 

 

 

 

 

 

<telerik:radsplitbar

 

 

id="RadSplitbar1" runat="server"

 

 

CollapseMode="Both"

 

 

 

 

 

EnableResize="True"

 

 

EnableTheming="False"

 

 

ResizeStep="1"

 

 

 

 

 

BorderColor="BlanchedAlmond"

 

 

 

 

 

BorderStyle="solid"

 

 

 

 

 

BorderWidth="1px"

 

 

 

 

 

Width="10px">

 

 

 

 

 

</telerik:radsplitbar>

 

 

 

 

 

 

<telerik:radpane id="TopContentPanel" Scrolling="Both"

 

 

runat="server"

 

 

 

 

 

height="99%"

 

 

width="99%"

 

 

 

 

 

MinHeight="250"

 

 

MinWidth="500" >

 

 

 

 

 

</telerik:radpane>

 

 

</telerik:radsplitter>

 

 

 

 

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

 

 

 

<AjaxSettings>

 

 

 

 

 

<telerik:AjaxSetting AjaxControlID="Panel1">

 

 

 

 

 

<UpdatedControls>

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="TopContentPanel" />

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadAjaxLoadingPanel1" />

 

 

 

 

 

</UpdatedControls>

 

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

 

 

<telerik:AjaxSetting AjaxControlID="Panel1">

 

 

 

 

 

<UpdatedControls>

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="TopContentPanel" />

 

 

 

 

<%

--<telerik:AjaxUpdatedControl ControlID="Label1" />--%>

 

 

</UpdatedControls>

 

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

 

</AjaxSettings>

 

 

 

 

 

<ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />

 

 

 

 

 

</telerik:RadAjaxManager>

 

 

 

 

<telerik:RadAjaxLoadingPanel id="RadAjaxLoadingPanel1" Runat="server" MinDisplayTime="100" Transparency="30">

 

 

 

 

 

<asp:Image id="Image1" runat="server" ImageUrl="~/RadControls/AJAX/Skins/Default/loading1.gif" >

 

 

 

 

 

</asp:Image>

 

 

 

 

 

</telerik:RadAjaxLoadingPanel>

 

 

 

 

</

 

div>

 

</

 

form>

 

</

 

body>

 

</

 

html>


 

using

 

System;

 

 

 

using

 

System.Data;

 

 

 

using

 

System.Configuration;

 

 

 

using

 

System.Web;

 

 

 

using

 

System.Web.Security;

 

 

 

using

 

System.Web.UI;

 

 

 

using

 

System.Web.UI.WebControls;

 

 

 

using

 

System.Web.UI.WebControls.WebParts;

 

 

 

using

 

System.Web.UI.HtmlControls;

 

 

 

using

 

Telerik.Web.UI;

 

 

 

//using DRM;

//using PlannedOperation;

//using PlanLibrary.Services;

 

 

 

 

public partial class Drm_OPSMainForm : System.Web.UI.Page

 

 

 

 

{

 

public string selectedUC

 

{

 

set

 

 

 

 

{

 

if (System.IO.File.Exists(Server.MapPath(value)))

 

{

Session[

"selectedUC"] = value;

 

}

 

else if (value == null)

 

{

Session[

"selectedUC"] = null;

 

}

}

 

get

 

 

 

 

{

 

return Session["selectedUC"] == null ? "Op_FooterTickerTape.ascx" : Session["selectedUC"].ToString();

 

}

}

 

private string FullPath(RadMenuItem item)

 

{

 

if (item.Owner is RadMenuItem)

 

{

 

return string.Format("{0} > {1}", FullPath((RadMenuItem)item.Owner), item.Text);

 

}

 

else

 

 

 

 

{

 

return item.Text;

 

}

}

 

public string destPane

 

{

 

set

 

 

 

 

{

Session[

"DestPane"] = value;

 

}

 

get

 

 

 

 

{

 

return Session["DestPane"] == null ? "TopContentPanel" : Session["DestPane"].ToString();

 

}

}

 

public Int32 selectedOpId

 

{

 

get

 

 

 

 

{

 

return ViewState["SelectedOpId"] == null ? 0 : Int32.Parse(ViewState["SelectedOpId"].ToString());

 

 

//return Session["selectedOpId"] == null ? 0 : Int32.Parse(Session["selectedOpId"].ToString());

 

 

 

 

}

 

set

 

 

 

 

{

ViewState[

"SelectedOpId"] = value;

 

}

}

 

public Int32 selectedOpPlanId

 

{

 

set

 

 

 

 

{

Session[

"SelectedOpPlanId"] = value;

 

}

 

get

 

 

 

 

{

 

return Session["SelectedOpPlanId"] == null ? 0 : Int32.Parse(Session["SelectedOpPlanId"].ToString());

 

}

}

 

protected int OwnerId

 

{

 

get { return int.Parse(Session["OrgId"].ToString()); }

 

}

 

 

protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)

 

{

 

if (e.Argument == "InitialPageLoad")

 

{

 

//simulate longer page load

 

 

 

 

System.Threading.

Thread.Sleep(2000);

 

}

}

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

if (!Page.IsPostBack)

 

{

 

if (Request.Params["OpPlanId"] != null)

 

{

selectedOpPlanId =

int.Parse(Request.Params["OpPlanId"].ToString());

 

}

 

 

if (Request.Params["OpId"] != null)

 

{

selectedOpId =

int.Parse(Request.Params["OpId"].ToString());

 

}

TopContentPanel.ContentUrl =

"~/WebForms/Planning/PlanMap.aspx?PlanId=" + selectedOpPlanId;

 

}

 

//Get Plan/SPlan ops Name for Header Breadcrumb //OpPlanName

 

 

 

 

lblHdrBreadcrumb.Text = Request.Params[

"OpPlanName"].ToString();

 

}

 

protected void Mnu_DmResources_ItemClick(object sender, RadMenuEventArgs e)

 

 

//============================================================================

 

 

 

 

{

 

//DM (Co-ordinators/Management's) resources

 

 

 

 

 

// OwnerId will/must be DM, this (top) Menu then not visible to RolePlayers

 

 

 

 

 

// Maps,...visible to RolePlayers? or only DM

 

 

 

 

 

// if (Session["UserRole"].ToString() == "DM Admin")

 

 

 

 

 

// { //i.e. not RP's

 

 

 

 

 

RadMenuItem ItemClicked = e.Item;

 

 

string Temp = FullPath(ItemClicked);

 

 

switch (FullPath(ItemClicked))

 

{

 

case "RiskAreaMap":

 

 

TopContentPanel.ContentUrl =

 

"~/WebForms/Planning/PlanMap.aspx?PlanId=" + selectedOpPlanId

 

+

"&OwnerId=" + OwnerId;

 

 

break;

 

 

case "Documents":

 

TopContentPanel.ContentUrl =

 

"~/WebForms/Planning/DM_DocDragDrop.aspx?PlanId=" + selectedOpPlanId

 

+

"&OwnerId=" + OwnerId;

 

 

break;

 

 

case "Contacts":

 

TopContentPanel.ContentUrl =

 

"~/WebForms/Planning/ContactsAllocated.aspx?PlanId=" + selectedOpPlanId

 

+

"&OwnerId=" + OwnerId;

 

 

break;

 

 

case "RolePlayers":

 

TopContentPanel.ContentUrl =

 

"~/WebForms/Wizard/RolePlayers.aspx?PlanId=" + selectedOpPlanId

 

+

"&OwnerId=" + OwnerId;

 

 

break;

 

 

case "CheckLists":

 

TopContentPanel.ContentUrl =

 

"~/WebForms/Operations/OpsCheckLists.aspx?PlanId=" + selectedOpPlanId

 

+

"&blnOpsSPlan=" + "false"

 

+

"&OpId=" + selectedOpId

 

+

"&OwnerId=" + OwnerId;

 

 

break;

 

 

default:

 

TopContentPanel.ContentUrl =

 

"~/WebForms/Planning/PlanMap.aspx?PlanId=" + selectedOpPlanId

 

+

"&OwnerId=" + OwnerId;

 

 

break;

 

}

}

 

protected void Menu3_ItemClick(object sender, RadMenuEventArgs e)

 

 

//===================================================================

 

 

 

 

 

// RolePlayers Menu, i.e. RolePlayer specific,...

 

 

 

 

 

// When DM looks at these, sees all RP's for each SubPlan in the Plan

 

 

 

 

 

// grouped then by Rp's per SubPlan(s) of this Plan

 

 

 

 

 

//===================================================================

 

 

 

 

{

 

// *** These are RolePlayer specific, for a RolePlayer , using OwnerId *** //

 

 

 

 

 

// IF DM looking at these, then specific to all RP's per all SubPlans of the Plan

 

 

 

 

 

RadMenuItem ItemClicked = e.Item;

 

 

string Temp = FullPath(ItemClicked);

 

 

 

//SQL's provide also for Ownerid = 0 (as DM, to see all Subplans and all RP's of the Subplan(s)' Data),

 

 

 

 

 

int iOwnerId = 0;

 

 

if (Session["UserRole"].ToString() != "DM Admin")

 

{

iOwnerId = OwnerId;

}

 

switch (FullPath(ItemClicked))

 

{

 

case "Documents":

 

 

//For RP's per SubPlans per this Plan

 

 

 

 

TopContentPanel.ContentUrl =

 

"~/WebForms/Planning/DM_DocDragDrop.aspx?PlanId=" + selectedOpPlanId

 

+

"&blnOpsSPlan=" + "True"

 

+

"&OpId=" + selectedOpId

 

+

"&OwnerId=" + iOwnerId;

 

 

break;

 

 

case "Contacts":

 

 

//For RP's per SubPlans per this Plan

 

 

 

 

TopContentPanel.ContentUrl =

 

"~/WebForms/Operations/SubPlan_Rps_ContactsAllocated.aspx?PlanId=" + selectedOpPlanId

 

+

"&blnOpsSPlan=" + "True"

 

+

"&OpId=" + selectedOpId

 

+

"&OwnerId=" + iOwnerId;

 

 

break;

 

 

case "TaskChecklist":

 

 

//For RP's per SubPlans per this Plan

 

 

 

 

TopContentPanel.ContentUrl =

 

"~/WebForms/Operations/OpsCheckLists.aspx?PlanId=" + selectedOpPlanId

 

+

"&blnOpsSPlan=" + "True"

 

+

"&OpId=" + selectedOpId

 

+

"&OwnerId=" + iOwnerId ;

 

 

break;

 

 

default:

 

TopContentPanel.ContentUrl =

 

"~/WebForms/Operations/OpsCheckLists.aspx?PlanId=" + selectedOpPlanId

 

+

"&blnOpsSPlan=" + "True"

 

 

 

 

+

"&OpId=" + selectedOpId

 

+

"&OwnerId=" + iOwnerId;

 

 

break;

 

}

}

 

}

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 27 Jul 2009, 12:49 PM
Hello Neal,

The mentioned error is due to the fact that you are ajaxifying RadPane control which is not allowed. You can ajaxify the whole splitter of any control in the particular RadPane. Therefore I suggest that you try adding ASP:Panel control into the TopContentPanel RadPane and ajaxify it instead.

A possible reason for the RadAjaxLoadingPanel not behave as expected is that it is set as update control via ajax which is not suggested as well.

I suggest that you modify your html markup as below and see if it works for you:

<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
 
            <script type="text/javascript">  
var currentLoadingPanel = null;   
var currentUpdatedControl = null;   
function RequestStart(sender, args)   
{   
currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID%>");   
if (args.get_eventTarget() == "<%= RadPanelbar1.UniqueID %>")   
{   
currentUpdatedControl = "<%= TopContentPanel.ClientID %>";   
//show the loading panel over the updated control   
currentLoadingPanel.show(currentUpdatedControl);   
}   
if (args.get_eventTarget() == "<%= RadPanelbar1.UniqueID %>")   
{   
currentUpdatedControl = "<%= TopContentPanel.ClientID %>";   
//show the loading panel over the updated control   
currentLoadingPanel.show(currentUpdatedControl);   
}   
}   
function ResponseEnd()   
{   
//hide the loading panel and clean up the global variables   
if (currentLoadingPanel != null)   
currentLoadingPanel.hide(currentUpdatedControl);   
currentUpdatedControl = null;   
currentLoadingPanel = null;   
}   
            </script> 
 
        </telerik:RadCodeBlock> 
 
        <script language="javascript" type="text/javascript">   
function Menu_OnClientItemClicked(sender, eventArgs)   
{   
}  
function ClosePage()  
{  
if (!confirm('Are you sure you want to exit this Page?'))   
{  
window.location.href = 'javascript:void(0)'; //stay here   
}  
else   
{   
window.opener = self;  
window.navigate("../../DRM_Main.aspx");   
}   
}  
        </script> 
 
        <div id="xx" runat="server" class="FormHdr" align="right" style="position: absolute;  
            width: 100%; height: 30px; top: 0px;"> 
            <input id="Button2" class="CloseBtn" onclick="ClosePage()" type="button" value="X" /> 
        </div> 
        <div id="xxx" runat="server" class="FormHdr2" style="position: absolute; width: 100%;  
            height: 30px; left: 0px; top: 0px; text-align: center; vertical-align: middle"> 
            <asp:Label ID="lblHdrBreadcrumb" runat="server" Text="Operational Plan">   
            </asp:Label> 
        </div> 
        <div id="Main" style="position: absolute; top: 30px; left: 0px; width: 100%;">  
            <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="900px" Width="100%" 
                Skin="Telerik" LiveResize="true" Orientation="Vertical" BorderColor="Transparent" 
                BorderSize="1" BorderStyle="None" BackColor="Transparent">  
                <telerik:RadPane Height="99%" ID="navigationPane" runat="server" MinHeight="500" 
                    MinWidth="100" Width="150px" BackColor="DimGray">  
                    <asp:Panel ID="Panel1" runat="server">  
                        <telerik:RadPanelBar ID="RadPanelbar1" runat="server" Width="100%" PersistStateInCookie="True">  
                            <Items> 
                                <telerik:RadPanelItem Text="DM" Height="50%" Width="100%" Expanded="True" runat="server" 
                                    CssClass="FrmHdrMnuGrdnt">  
                                    <Items> 
                                        <telerik:RadPanelItem runat="server" Selected="True" CssClass="FrmHdrMnuGrdnt" Width="100%">  
                                            <ItemTemplate> 
                                                <telerik:RadMenu ID="Mnu_DmResources" BackColor="transparent" runat="server" Flow="Vertical" 
                                                    Width="100%" OnItemClick="Mnu_DmResources_ItemClick">  
                                                    <Items> 
                                                        <telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy" Text="RiskAreaMap" 
                                                            Width="100%">  
                                                            <GroupSettings ExpandDirection="Down" /> 
                                                        </telerik:RadMenuItem> 
                                                        <%-- <telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy"   
 
Text="RolePlayers" Width="100%" > 
 
<GroupSettings ExpandDirection="Down" /> 
 
</telerik:RadMenuItem>--%> 
                                                        <telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy" Text="CheckLists" 
                                                            Width="100%">  
                                                            <GroupSettings ExpandDirection="Down" /> 
                                                        </telerik:RadMenuItem> 
                                                        <telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy" Text="Contacts" 
                                                            Width="100%">  
                                                            <GroupSettings ExpandDirection="Down" /> 
                                                        </telerik:RadMenuItem> 
                                                        <telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy" Text="Documents" 
                                                            Width="100%">  
                                                            <GroupSettings ExpandDirection="Down" /> 
                                                        </telerik:RadMenuItem> 
                                                        <telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy" Text="Logs" 
                                                            Width="100%">  
                                                            <GroupSettings ExpandDirection="Down" Width="90px" /> 
                                                        </telerik:RadMenuItem> 
                                                    </Items> 
                                                </telerik:RadMenu> 
                                            </ItemTemplate> 
                                        </telerik:RadPanelItem> 
                                    </Items> 
                                </telerik:RadPanelItem> 
                                <telerik:RadPanelItem Text="RolePlayers" Expanded="True" Height="50%" runat="server" 
                                    CssClass="FrmHdrMnuGrdnt">  
                                    <Items> 
                                        <telerik:RadPanelItem runat="server">  
                                            <ItemTemplate> 
                                                <telerik:RadMenu ID="Mnu_RolePlayers" runat="server" Flow="Vertical" Width="99%" 
                                                    OnItemClick="Menu3_ItemClick">  
                                                    <Items> 
                                                        <telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy" Text="TaskChecklist" 
                                                            Width="100%">  
                                                            <GroupSettings ExpandDirection="Down" Width="90px" /> 
                                                        </telerik:RadMenuItem> 
                                                        <telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy" Text="Contacts" 
                                                            Width="100%">  
                                                            <GroupSettings ExpandDirection="Down" Width="90px" /> 
                                                        </telerik:RadMenuItem> 
                                                        <telerik:RadMenuItem runat="server" BackColor="transparent" ForeColor="Navy" Text="Documents" 
                                                            Width="100%">  
                                                            <GroupSettings ExpandDirection="Down" Width="90px" /> 
                                                        </telerik:RadMenuItem> 
                                                    </Items> 
                                                </telerik:RadMenu> 
                                            </ItemTemplate> 
                                        </telerik:RadPanelItem> 
                                    </Items> 
                                </telerik:RadPanelItem> 
                            </Items> 
                        </telerik:RadPanelBar> 
                    </asp:Panel> 
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Both" EnableResize="True" 
                    EnableTheming="False" ResizeStep="1" BorderColor="BlanchedAlmond" BorderStyle="solid" 
                    BorderWidth="1px" Width="10px"></telerik:RadSplitBar> 
                <telerik:RadPane ID="TopContentPanel" Scrolling="Both" runat="server" Height="99%" 
                    Width="99%" MinHeight="250" MinWidth="500">  
                    <asp:Panel ID="TopContentPanel1" runat="server"></asp:Panel> 
                </telerik:RadPane> 
            </telerik:RadSplitter> 
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="Panel1">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="Panel1" /> 
                            <telerik:AjaxUpdatedControl ControlID="TopContentPanel1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting>                      
                </AjaxSettings> 
                <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" /> 
            </telerik:RadAjaxManager> 
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" MinDisplayTime="100" 
                Transparency="30">  
                <asp:Image ID="Image1" runat="server" ImageUrl="~/RadControls/AJAX/Skins/Default/loading1.gif">  
                </asp:Image> 
            </telerik:RadAjaxLoadingPanel> 
        </div> 
    </form> 
</body> 

Note: Please try using the Format Code Block option from the editor toolbar when you need to paste any code in your posts.

Regards,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
Neal
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or