<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %><%@ Register Assembly="RadSchedulerDemo" Namespace="RadSchedulerDemo.Helpers" TagPrefix="cc1" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><script runat="server"> //needed to run RadScheduler without <form> tag public override void VerifyRenderingInServerForm(Control control) { //base.VerifyRenderingInServerForm(control); }</script><asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> Index</asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <telerik:RadScriptManager runat="server" ID="RadScriptManager1"> </telerik:RadScriptManager> <!-- to allow for user authentication, a custom control needed to be created to handle the ASPXAUTH cookie during the GetResources call. see and relevant code in Helpers\MyScheduler.cs --> <cc1:MyScheduler ID="MyScheduler1" runat="server" SelectedView="WeekView" StartInsertingInAdvancedForm="true" AppointmentStyleMode="Default" StartEditingInAdvancedForm="true"> <AdvancedForm Enabled="true" Modal="true" /> <WebServiceSettings Path="~/SchedulerService" ResourcePopulationMode="ServerSide" UseHttpGet="false" /> </cc1:MyScheduler></asp:Content>GetAppointments from SchedulerProviderBase in my implementation of the WebServiceAppointmentControllerpublic override IEnumerable<Appointment> GetAppointments(RadScheduler owner) { List<Appointment> list = new List<Appointment>(); AppointmentDS.SchedarioDataTable dt = null; DateTime star; DateTime end; Dictionary<DateTime, List<Appointment>> dic = new Dictionary<DateTime, List<Appointment>>(); int ora = 9; int cont = 0; try { dt = dal.getSchedarioDT(DateTime.Today, DateTime.Today.AddDays(-7), DateTime.Today.AddDays(7)); foreach (AppointmentDS.SchedarioRow row in dt) { Appointment item = owner.CreateAppointment(); item.ID = row.STR_Id; if (row.IsTIS_NomeNull()) item.Subject = ""; else item.Subject = row.TIS_Nome; star = new DateTime(row.PST_DataScadenza.Year, row.PST_DataScadenza.Month, row.PST_DataScadenza.Day,0,0,0); end = new DateTime(row.PST_DataScadenza.Year, row.PST_DataScadenza.Month, row.PST_DataScadenza.Day, 0, 0, 0); item.Start = star.ToUniversalTime(); item.End = end.ToUniversalTime(); item.BackColor = System.Drawing.Color.Yellow; item.CssClass = "testtest"; list.Add(item); }
} catch (Exception ex) { throw; } return list; }item.BackColor = System.Drawing.Color.Yellow;
But it don't take effect in the View.
Samebody can help me please?
Thanks a lot
function keyboardActions(event) { if (event.keyCode == 13) { eval($("#<%=btnSearch.ClientID %>").trigger('click')); // Doesn't work with RadButton Q3.2010 return false; } // other keypressed other actions ?}// If the client press ENTER, the Search button is clicked.$(document).ready(function () { if ($.browser.mozilla) { $("#<%=txtName.ClientID %>").keypress(keyboardActions); $("#<%=txtCode.ClientID %>").keypress(keyboardActions); } else { $("#<%=txtName.ClientID %>").keydown(keyboardActions); $("#<%=txtCode.ClientID %>").keydown(keyboardActions); }});Hello,
I am displaying several RadSliders within a RadListView inside of a 'load on demand' RadTabStrip, and I am getting a rendering issue with the RadSlider on all browsers.
After my ‘compatibility’ tab loads the RadSliders look as you see them in ImageA. You will notice that I have placed one test RadSlider outside of the RadListView which also displays incorrectly.
If I click on my ‘profile’ tab and then back to my ‘compatibility’ tab the RadSliders will display correctly and as expected in ImageB.
Does anyone know how to correct this issue?
Best regards,
~Dean
dataComboBox.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(this.dataComboBox_SelectedItemChanged);Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral, PublicKey Token=89845dcd8080cc91' or one of its dependecies. The system cannot find the file specified.
It seems that this used to work before installing the Telerik controls or maybe it's just been a while since I've done this. Thanks for any help.
function onAppointmentContextMenuItemClicked(sender, args) { switch (args.get_item().get_value()) { case "CommandDelete": if (args.get_appointment().get_id().startsWith('booking')) type = "booking"; else if (args.get_appointment().get_id().startsWith('fixture')) type = "fixture"; if (!confirm("Are you sure you want to delete this " + type)) { args.set_cancel(true); } break; }}