RadCalendar in RadMenu

4 posts, 0 answers
  1. Corey Alguire
    Corey Alguire avatar
    43 posts
    Member since:
    Sep 2004

    Posted 09 Dec 2008 Link to this post

    I am having a bit of a hard time with a RadMenu scenario.

    I have a UserControl which contains a RadMenu. The UserControl is placed in Master Pages for the site. Most of the Menus are added dynamically at run-time. However, one item- always the last item in the list, is intended to display the date currently in active selection for the application. The menu expands to show a single templated item containing a RadCalendar. On the first load of a page, everything seems fine.

    My troubles are as follow:
    1. The RadCalendar always disappears on postback.
    2. The event which I have tried every way I can find to register for the SelectionChanged Event of the RadCalendar, and which I would like to handle in the UserControl itself, does not fire.

    Does anyone have any tips for this scenario? Anyone else have a similar implementation that is working? The code I found in the code library was unfortunately not very helpful. It gave me things to try, but so far nothing has worked.

    Many thanks for any help!
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 09 Dec 2008 Link to this post

    Hello Corey Alguire,

    Make sure you are always adding the calendar in that menu item after postback. Dynamically added controls which are not menu items cannot be persisted by RadMenu.

    Regards,
    Albert
    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. Corey Alguire
    Corey Alguire avatar
    43 posts
    Member since:
    Sep 2004

    Posted 09 Dec 2008 Link to this post

    The Calendar is in the only MenuItem which is not added dynamically.
  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 09 Dec 2008 Link to this post

    Hi Corey Alguire,

    Could you send us some sample source code? This would help us troubleshoot the problem. You need to open a support ticket in order to attach files.

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top