fast navigation of calendar in context menu shown under menu item

3 posts, 1 answers
  1. AdrianP
    AdrianP avatar
    22 posts
    Member since:
    Nov 2007

    Posted 01 Aug 2008 Link to this post

    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. Answer
    Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 04 Aug 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. AdrianP
    AdrianP avatar
    22 posts
    Member since:
    Nov 2007

    Posted 04 Aug 2008 Link to this post

    Thank you Maria, it solved my problem.

    Adrian
Back to Top