Hi there,
I am creating a "DatePicker- WebCustomControl" for a GridCalndarColumn. I added 2 context menu's for month and year to a date picker.I added javascript code in a JS file and included. MonthMenu is showing, But "YearMenuClick" is event is not firing. following is a code snippet.
Code: C#
picker = new EO.Web.DatePicker();
..................
..................
..................
ContextMenu cmYearMenu = new ContextMenu();
..............
..............
..............
cmYearMenu.ClientSideOnItemClick = "javascript:return YearMenuClicked(event,this);";
..............
..............
.............
cmYearMenu.LookItems.Add(mnuYear);
cmYearMenu.LookItems.Add(mnuYearScrollDown);
cmYearMenu.LookItems.Add(mnuYearScrollUp);
picker.TitleTemplate = new ClientTemplate();
picker.TitleTemplate.Text = "{var:visible_date:MMMM}<a id=\"A3 \" href=\"javascript:ShowMonthPopup('{var:clientId}', '{var:clientId}_month');\"><img src=\"{img:00020012}\" border=\"0\" /></a>{var:visible_date:yyyy}<a id=\"A4\" href=\"javascript:ShowYearPopup('{var:clientId}', '{var:clientId}_year');\"><img src=\"{img:00020012}\" border=\"0\" /></a>";
...............
.............
container.Controls.Add(picker);
container.Controls.Add(cmMonthMenu);
container.Controls.Add(cmYearMenu);
But if I add only Year Menu, then "YearMenuClick" event is firing. how to add 2 context menu's to a title temple in code behind.