Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views
Good Morning,
I have a FileExplorer displaying documents associated with a selected piece of equipment. In Page Load, the InitialPath assignment displays the documents in the root folder. However, when a piece of equipment is selected via a TreeView, no documents are displayed in the FileExplorer. Below in the code dynamically defining the path used for InitialPath:

 

Dim path As String

 

 

If upsRadTreeView.SelectedValue = Nothing Then

 

path = Page.ResolveUrl(

"~/CustomerData/" & Profile.CustomerNumber.ToString)

 

 

Else

 

path = Page.ResolveUrl(

"~/CustomerData/" & Profile.CustomerNumber.ToString & "/UPSData/" & upsRadTreeView.SelectedNode.Value.ToString)

 

 

End If

 

 

Dim paths As String() = {path}

 

documentsRadFileExplorer.InitialPath = path

documentsRadFileExplorer.Configuration.UploadPaths = paths

documentsRadFileExplorer.Configuration.ViewPaths = paths

*.aspx code:

 

<

 

telerik:RadFileExplorer ID="documentsRadFileExplorer" runat="server" Height="200px" Width="480px" VisibleControls="Grid"

 

 

EnableCreateNewFolder="False" DisplayUpFolderItem="false" Skin="Black"></telerik:RadFileExplorer>

 

 

 

Please advise.

Thanks,
Erik

Fiko
Telerik team
 answered on 27 Jul 2009
2 answers
141 views
    <script type="text/javascript"
        function showCreateMenu(e) { 
            var contextMenu = $find("<%= CreateMenuOptions.ClientID %>"); 
 
            if ((!e.relatedTarget) || (!$telerik.isDescendantOrSelf(contextMenu.get_element(), e.relatedTarget))) { 
                contextMenu.show(e); 
            } 
 
            $telerik.cancelRawEvent(e); 
        } 
         
        function OnClientShowingHandler(sender, args) { 
            var element = sender.get_contextMenuElement(); 
            var handler = function(e) { 
                var relatedTarget = e.rawEvent.relatedTarget || e.rawEvent.toElement; 
                if (!$telerik.isDescendantOrSelf(element, relatedTarget)) { 
                    sender.hide(); 
                    $removeHandler(element, "mouseout", handler); 
                    return
                } 
            }; 
 
            $addHandler(element, "mouseout", handler); 
        } 
    </script> 

    <telerik:RadContextMenu ID="CreateMenuOptions" runat="server" OnClientShowing="OnClientShowingHandler" ExpandDelay="500"
        <Items> 
            <telerik:RadMenuItem Text="Create Sales Order" Value="mnuCreateSO" /> 
            <telerik:RadMenuItem Text="Create Quote" Value="mnuCreateQuote" /> 
        </Items> 
        <Targets> 
            <telerik:ContextMenuControlTarget ControlID="CreateMenuOptions" /> 
        </Targets> 
    </telerik:RadContextMenu>    
     
    <asp:ImageButton ID="btnCreate" runat="server" CommandName="Create" onmouseover="showCreateMenu(event);" ImageUrl="~/images/toolbar_icon.png"></asp:ImageButton> 

I have an ImageButton mouseover event which calls a JS function to show a RadContextMenu. This function works properly. However, the ExpandDelay setting of the RadContextMenu is not being used. When I mouseover the ImageButton the menu is displayed immediately. What can I do about this? I am using the 2009.1.402.35 controls.

Brian Gabel
Top achievements
Rank 1
 answered on 27 Jul 2009
12 answers
140 views
I recently upgraded from the Q3 2008 version to the Q2 2009 version and noticed that my modal popup no longer work. There is no graying of the background, and everything behind the window is clickable. What changed?
Svetlina Anati
Telerik team
 answered on 27 Jul 2009
2 answers
72 views
Is it possible to attach a radtooltip to a radmenuitem?

Thanks,
Larry
Larry
Top achievements
Rank 1
 answered on 27 Jul 2009
1 answer
249 views

var

 

oWnd = radopen("Dialog1.aspx", "RadWindow1");

oWnd.remove_close(ClosingFn);
...
...

But I want to Clare clear_close   
Exp
    oWnd.clear_close();    Or   oWnd.remove_close(ALL);

 

Fiko
Telerik team
 answered on 27 Jul 2009
1 answer
98 views
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;

 

}

}

 

}

Iana Tsolova
Telerik team
 answered on 27 Jul 2009
2 answers
58 views
HI there,

I'm having a problem with radEditor in Firefox.  Specifically, when I click on the Hyperlink Manager I get the following error in firebug:

Security error" code: "1000
this._upperAbbrMonths = this...s.dateTimeFormat.AbbreviatedMonthNames);

and it points to this line:

this._upperAbbrMonths = this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames);

I can't open the hyperlink manager in IE either.  However both safari and chrome work.

Any help would be much appreciated.

Thanks

DJ



Desa Julian
Top achievements
Rank 1
 answered on 27 Jul 2009
1 answer
118 views
mainpage.aspx
<windowmanager  minimizezone="divx"  restrictedzone="divy" />
<splitter>
<pane top>
  menu
</pane top>
<splitter>
<pane bottom>
   external content (*.aspx, here "divx" and "divy" are defined in a master page)
</pane bottom>
</splitter>

Is it possible to access "divx" and "divy" in external content(*.aspx) in bottom panel, from mainpage.aspx

Georgi Tunev
Telerik team
 answered on 27 Jul 2009
1 answer
68 views
Can you help me please?

Telerik window sample
Why in this sample when you open it, you can click on any part of each window and the window comes to the front.

But if you close both windows, and open them again with the radopen button, that behaviour it's removed, ie, you need to click on the title bar for get to the front, if you click on any other part, the window doesnt recognize it needs to be on the front.

Thanks.
Georgi Tunev
Telerik team
 answered on 27 Jul 2009
2 answers
184 views
Hi,

I've spend my day trying to display a recurring appointment in a radScheduler.

More context:
I Bind my RadScheduler to a IEnumerable like that :
           
scheduler.DataKeyField = "Id"
scheduler.DataSubjectField = "Title"
scheduler.DataStartField = "Start"
scheduler.DataEndField = "End"
scheduler.DataRecurrenceField = "RecurrenceRule"
scheduler.DataRecurrenceParentKeyField = "MasterItemId"
 
scheduler.DataSource = results; 
scheduler.DataBind(); 

results is an IQueryable that represents the appointments to display.

I try to convert a single existing appointment to a recurring one just by specifying the RecurrenceRule on DB like that :
DTSTART:20090724T180000Z 
DTEND:20090724T190000Z 
RRULE:FREQ=DAILY;COUNT=10;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU

to the following appointment:
Subject : Test 
Start : 24/07/2009 18:00:00 
End : 24/07/2009 19:00:00 

My RadScheduler diplays for :
  • DAILY VIEW : nothing
  • WEEKLY VIEW : 3 appointments with same name and start/end on the same day (2009/07/24) width the recurring symbol on the left corner.
  • MONTHLY VIEW : same as in weekly view but it only displays 2 appointments*
*Probably due to my radscheduler display configuration
But it is not displaying the recurring occurences in the RadScheduler.

I don't understand why ? Why the RadScheduler is displaying multiple items of my master appointment in the same day instead of displaying for the next 10 days, an ocurrence per day ?

Please help me to understand.

Thanks
Colibri
Top achievements
Rank 1
 answered on 27 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?