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

fast navigation of calendar in context menu shown under menu item

2 Answers 54 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
AdrianP
Top achievements
Rank 2
AdrianP asked on 01 Aug 2008, 07:59 AM
Hello,

I'm having a problem with a calendar found in a context menu: when clicking on the calendar title the fast navigation table is shown under the menu item. 

Below you can see my code:

<

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

<

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

<

asp:Label runat="server" ID="lblShow" Text="Test bug"></asp:Label>

<

radC:RadContextMenu EnableViewState="false" ClickToOpen="true" ID="RadMenu1" runat="server" Flow="Vertical" style="left: 0px; top: 0px" >

<

Targets>

<radC:ContextMenuControlTarget ControlID="lblShow" />

</Targets>

<

Items>

<radC:RadMenuItem runat="server" Text="Calendar" Value="Day_Selector">

<Items>

<radC:RadMenuItem runat="server" Value="Day">

<ItemTemplate>

<radC:RadCalendar ID="RadCalendar1" runat="server" EnableMultiSelect="False" SelectedDate="" EnableViewState="false" TitleFormat="MMM yyyy" Width="160px" />

</ItemTemplate>

</radC:RadMenuItem>

</Items>

</radC:RadMenuItem>

</

Items>

</

radC:RadContextMenu>

</

form>


Any ideas on how to resolve this issue?

2 Answers, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 04 Aug 2008, 12:43 PM
Hi Adrian Petcu,

The problem you are facing is caused by the Z-index of RadCalendar, which is smaller that the ContextMenu index. In order to have the application working properly use the following:

<script type="text/javascript">

function pageLoad()
{
Telerik.Web.UI.Calendar.Popup.zIndex = 10000000;
}
</script>

Let us know if this helps.

Kind regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
AdrianP
Top achievements
Rank 2
answered on 04 Aug 2008, 01:01 PM
Thank you Maria, it solved my problem.

Adrian
Tags
Calendar
Asked by
AdrianP
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
AdrianP
Top achievements
Rank 2
Share this question
or