1) RadScheduler context menu does not fire AppointmentContextMenuItemClicked event.
(version 2011.3.1227.40)
(version 2011.3.1227.40)
using System;using System.Collections.Generic;using System.Globalization;using System.Web.Script.Services;using System.Web.Services;using Telerik.Web.UI;namespace Naucrates.Formcrates.Web.Form{ [WebService] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ScriptService] public partial class TestScheduler : System.Web.UI.Page { protected void Page_Init(object sender, EventArgs e) { var Control = new RadScheduler(); Control.ID = "test"; Page.Form.Controls .Add(Control); Control.AllowDelete = false; Control.AllowEdit = false; Control.AllowInsert = false; Control.FirstDayOfWeek = DayOfWeek.Monday; Control.LastDayOfWeek = DayOfWeek.Sunday; Control.ShowFullTime = false; Control.SelectedView = SchedulerViewType.MonthView; Control.ShowViewTabs = true; Control.ShowAllDayRow = true; Control.DayView.UserSelectable = false; Control.WeekView.UserSelectable = false; Control.TimelineView.UserSelectable = false; Control.WebServiceSettings.Path = Request.Url.AbsoluteUri; Control.WebServiceSettings.ResourcePopulationMode = SchedulerResourcePopulationMode.ClientSide; Control.TimeZoneOffset = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now); Control.VisualTimeZoneOffset = Control.TimeZoneOffset; Control.Culture = new CultureInfo("cs-CZ"); Control.ShowDateHeaders = false; var menu = new RadSchedulerContextMenu(); menu.Items.Add(new RadMenuItem("test1")); menu.Items.Add(new RadMenuItem("test2") { PostBack = true, Value = "val" }); Control.AppointmentContextMenus.Add(menu); Control.AppointmentContextMenuItemClicked += Control_AppointmentContextMenuItemClicked; Control.AppointmentContextMenuItemClicking += Control_AppointmentContextMenuItemClicking; } void Control_AppointmentContextMenuItemClicking(object sender, AppointmentContextMenuItemClickingEventArgs e) { System.Diagnostics.Debug.WriteLine("CLICKING!"); } protected void Control_AppointmentContextMenuItemClicked(object sender, AppointmentContextMenuItemClickedEventArgs e) { System.Diagnostics.Debug.WriteLine("CLICK!"); } [WebMethod] public static IEnumerable<AppointmentData> GetAppointments(SchedulerInfo schedulerInfo) { var data = new List<AppointmentData>(); data.Add(new AppointmentData {Start = DateTime.Today, End = DateTime.Today.AddDays(2),Description = "TEST", Subject = "test"}); return data; } [WebMethod] public static IEnumerable<ResourceData> GetResources(SchedulerInfo schedulerInfo) { return new List<ResourceData>(); } }}2) Culture property does not working properly (see image).
What am I doing wrong?
Thanks,
Tomas Svec