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

RadCalendar in RadMenu

3 Answers 26 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Corey Alguire
Top achievements
Rank 1
Corey Alguire asked on 09 Dec 2008, 03:52 PM
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!

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 09 Dec 2008, 04:07 PM
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.
0
Corey Alguire
Top achievements
Rank 1
answered on 09 Dec 2008, 04:42 PM
The Calendar is in the only MenuItem which is not added dynamically.
0
Atanas Korchev
Telerik team
answered on 09 Dec 2008, 04:47 PM
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.
Tags
Menu
Asked by
Corey Alguire
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Corey Alguire
Top achievements
Rank 1
Share this question
or