function
isSlotFree(targetSlot, appointment)
{
var startTime = targetSlot.get_startTime();
var scheduler = $find("<%= RadScheduler1.ClientID %>");
var currentView = scheduler.get_selectedView();
if(currentView==2)
// concatenate new startDate with appointments time portion if in MONTHLY view only
{
var originalStartTime = appointment.get_start();
var newHour = originalStartTime.getHours();
var newMinute = originalStartTime.getMinutes();
var newSecond = originalStartTime.getSeconds();
startTime.setHours(newHour);
startTime.setMinutes(newMinute);
startTime.setSeconds(newSecond);
var endTime = new Date(startTime.getTime() + appointment._getDuration());
}
else
{
var endTime = new Date(startTime.getTime() + appointment._getDuration());
}
return overlapsWithAnotherAppointment(appointment, startTime, endTime);
}
| private void Page_Load(object sender, EventArgs e) | |
| { | |
| if (!IsPostBack) | |
| { | |
| Session.Remove(AppointmentsKey); | |
| } | |
| scheduler.DataSource = Appointments; | |
| } | |
| private const string AppointmentsKey = | |
| "Telerik.Examples.Scheduler.BindToList_Apts"; | |
| private DataSet Appointments | |
| { | |
| get | |
| { | |
| DataSet sessApts = Session[AppointmentsKey] as DataSet; | |
| if (sessApts == null) | |
| { | |
| sessApts = new DataSet(); | |
| sessApts.ReadXml(Server.MapPath("appointments.xml")); | |
| Session[AppointmentsKey] = sessApts; | |
| } | |
| return sessApts; | |
| } | |
| } | |
| // For debug: | |
| protected void scheduler_AppointmentCommand(object sender, AppointmentCommandEventArgs e) | |
| { | |
| Response.Write("Command: " + e.CommandName); | |
| } |
The radiobuttons are not showing correctly. They appear to have the bottom few pixels cut off. This happens in both IE7 and in FireFox. Here is the html being generated by the control:
ASPX:
| <table cellpadding="0" cellspacing="2"> |
| <tr> |
| <td> |
| Are operations in close proximity to protected area: |
| </td> |
| <td> |
| <asp:RadioButtonList ID="rblProtectedArea" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="rblProtectedArea_SelectedIndexChanged"> |
| <asp:ListItem Text="Yes" Value="True" /> |
| <asp:ListItem Text="No" Value="False" /> |
| </asp:RadioButtonList> |
| </td> |
| </tr> |
| </table> |
HTML:
| <table id="ctl00_Content1_ctl00_rblProtectedArea" border="0"> |
| <tbody> |
| <tr> |
| <td> |
| <input id="ctl00_Content1_ctl00_rblProtectedArea_0" class="Web20 input" type="radio" onclick="javascript:setTimeout('__doPostBack(\'ctl00$Content1$ctl00$rblProtectedArea$0\',\'\')', 0)" value="True" name="ctl00$Content1$ctl00$rblProtectedArea"/> |
| <label class="Web20 radfdRadioUnchecked" for="ctl00_Content1_ctl00_rblProtectedArea_0">Yes</label> |
| </td> |
| <td> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
Another issue I have that is only appearing in IE7 is I have 2 multi-line radtextbox controls on a page. With the form decorator active it is actually making these 2 controls invisible. I'm using the Web20 skin if that makes any difference. It does not happen in FireFox.
ASPX:
| Reasons for Initiatives (Regulatory Requirements / Voluntary):<br /> |
| <Telerik:RadTextBox ID="txtInitiativesReasons" runat="server" SkinID="TextBoxDescription" /> |
THEME:
| <Telerik:RadTextBox runat="server" SkinID="TextBoxDescription" |
| Skin="Web20" |
| TextMode="MultiLine" |
| Height="80px" |
| Width="700px" |
| Font-Size="10pt" |
| DisabledStyle-BorderColor="#c5cfe1" /> |
HTML:
| <span id="ctl00_Content1_ctl00_txtInitiativesReasons_wrapper" class="radInput_Web20" style="white-space:nowrap;"><textarea rows="2" cols="20" id="ctl00_Content1_ctl00_txtInitiativesReasons_text" name="ctl00_Content1_ctl00_txtInitiativesReasons_text" class="radEnabledCss_Web20 inputCell" style="width:700px;height:80px;"></textarea><textarea id="ctl00_Content1_ctl00_txtInitiativesReasons" name="ctl00$Content1$ctl00$txtInitiativesReasons" style="visibility:hidden;margin:-18px 0 0 0;width:1px;height:1px;overflow:hidden;border:0;padding:0;" cols="20" rows="2"></textarea><input id="ctl00_Content1_ctl00_txtInitiativesReasons_ClientState" name="ctl00_Content1_ctl00_txtInitiativesReasons_ClientState" type="hidden" /></span> |
Thank you.
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <ajaxsettings> |
| <telerik:AjaxSetting AjaxControlID="Button1"><updatedcontrols> |
| <telerik:AjaxUpdatedControl ControlID="RadDock1"></telerik:AjaxUpdatedControl> |
| <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1"></telerik:AjaxUpdatedControl> |
| </updatedcontrols> |
| </telerik:AjaxSetting> |
| </ajaxsettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadDock ID="RadDock1" runat="server" Width="300px" Closed="True" |
| Height="300px" Title="Search"> |
| </telerik:RadDock> |
| <telerik:RadAjaxPanel ID="RadAjaxPanel1" BorderWidth="1" runat="server" Height="100%" Width="100%"> |
| <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /> |
| </telerik:RadAjaxPanel> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <ajaxsettings> |
| <telerik:AjaxSetting AjaxControlID="Button1"><updatedcontrols> |
| <telerik:AjaxUpdatedControl ControlID="RadDock1"></telerik:AjaxUpdatedControl> |
| <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1"></telerik:AjaxUpdatedControl> |
| </updatedcontrols> |
| </telerik:AjaxSetting> |
| </ajaxsettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadAjaxPanel ID="RadAjaxPanel1" BorderWidth="1" runat="server" Height="100%" Width="100%"> |
| <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /> |
| <telerik:RadDock ID="RadDock1" runat="server" Width="300px" Closed="True" |
| Height="300px" Title="Search"> |
| </telerik:RadDock> |
| </telerik:RadAjaxPanel> |
Invalid JSON primitive:
{"Top":0"Left":0,"DockZoneID":"ctl00_ContentPlaceHolder1_Display_RackDockZone1","Collapsed":false,"Pinned":false,"Closed":false,"index":2}