or
function pageLoad() { var oWindow = GetRadWindow(); properties = oWindow.argument; if (properties) { if (properties["AutoRefreshEnabled"] == "True") { CheckBox1.checked = true; $find("<%= RadNumericTextBox1.ClientID %>").set_value(properties["AutoRefreshInterval"]); $find("<%= RadNumericTextBox1.ClientID %>").enable();
//Apply CSS Class here } }RadScheduler1_AppointmentInsert event, but not idea ho to show message.protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e) { //cerco l'agente selezionato Resource UserRes = e.Appointment.Resources.GetResourceByType("Agente"); if (UserRes != null) {
//DO BUSINESS Appointments.Add(new TrilanceScheduleBase(e.Appointment)); } else { //STOP
e.Cancel = true; } }<telerik:RadScheduler runat="server" ID="RadScheduler1" DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" DayStartTime="07:00:00" DayEndTime="20:00:00" TimeZoneOffset="03:00:00" OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentDelete="RadScheduler1_AppointmentDelete" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId" Height="100%" onappointmentdatabound="RadScheduler1_AppointmentDataBound" ondatabound="RadScheduler1_DataBound" Culture="Italian (Italy)" EditFormTimeFormat="HH.mm" FirstDayOfWeek="Monday" HoursPanelTimeFormat="HH" SelectedView="WeekView" StartInsertingInAdvancedForm="True" onformcreating="RadScheduler1_FormCreating"> <DayView DayEndTime="20:00:00" DayStartTime="07:00:00" WorkDayEndTime="20:00:00" WorkDayStartTime="07:00:00" /> <AdvancedForm Modal="true" TimeFormat="HH.mm" /> <TimelineView UserSelectable="false" /> <WeekView DayEndTime="20:00:00" DayStartTime="07:00:00" WorkDayEndTime="07:00:00" WorkDayStartTime="20:00:00" /> <TimeSlotContextMenuSettings EnableDefault="true" /> <AppointmentContextMenuSettings EnableDefault="true" /> </telerik:RadScheduler><telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager><div> <telerik:RadListBox ID="RadListBox1" OnLoad="RadListBox1_OnLoad" AllowTransfer="true" Height="400px" Width="300px" DataSourceID="SqlDataSource1" DataValueField="AmRepID" DataTextField="RepInfo" AllowTransferOnDoubleClick="true" SelectionMode="Multiple" TransferMode="Move" TransferToID="RepBoxSelected" runat="server"> </telerik:RadListBox> <telerik:RadListBox ID="RepBoxSelected" Height="400px" Width="300px" TransferToID="RadListBox1" runat="server"> </telerik:RadListBox> <br /> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionString %>" SelectCommand="SELECT Statement Here"></asp:SqlDataSource>using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Text.RegularExpressions;using Telerik.Web.UI;public partial class reports_MassMail : System.Web.UI.Page{ protected void RadListBox1_OnLoad(object sender, EventArgs e) { } protected void Page_Load(object sender, EventArgs e) { RadListBoxItem founditem = RadListBox1.FindItemByText("CAMPUS - <Rep Name>"); RadListBox1.Transfer(founditem, RadListBox1, RepBoxSelected); }}