or

On my web page i have a telerik calendar and also an create appointment button. when user clicks on insert appointment button, i want to show the insert appointment dialog directly. i know that you have a method showInsertFormAt() with timeslot parameter. However from my client side button click event, i cannot seem to create timeslot object. i tried using
<script type="text/javascript">
function
btn_click()
{
var schedulerPopupCalendar = $find('<%= radScheduler1.ClientID %>');
var
timeslot = new Telerik.Web.UI.TimeSlot(); \\ i get error here.
schedulerPopupCalendar.showInsertFormAt(timeslot);
}
but this Telerik.Web.UI.TimeSlot() object does not exist.
I will appreciate the help.
Posted 18 hours ago (permalink)

| <telerik:RadComboBox ID="RadComboBox3" |
| runat="server" |
| Width="186px" |
| CssClass="ComboBox_Cities" |
| OnClientItemsRequested="ItemsLoaded" |
| OnItemsRequested="RadComboBox3_ItemsRequested" |
| AppendDataBoundItems="true" |
| ShowMoreResultsBox="false" |
| NoWrap="true" |
| EnableScreenBoundaryDetection="false" |
| EmptyMessage="Type a city name" |
| AllowCustomText="false" |
| MarkFirstMatch="true"> |
| <Items> |
| <telerik:RadComboBoxItem Text="other, please specify" Value="-1" /> |
| </Items> |
| </telerik:RadComboBox> |
| Private Sub Page_Load(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.DayRenderEventArgs) Handles RadCalendar1.DayRender |
| startDate = CType(RadCalendar1.CalendarView, MonthView).MonthStartDate |
| endDate = CType(RadCalendar1.CalendarView, MonthView).MonthEndDate |
| Dim _Date As Date = "2009-09-11" |
| Do While _Date <= Now.AddYears(1) |
| DayOfMonth = _Date.Day |
| MonthMonth = _Date.Month |
| YearYear = _Date.Year |
| Dim CurrentDate As DateTime = e.Day.Date |
| If startDate <= CurrentDate And CurrentDate <= endDate Then |
| If CurrentDate.Day = DayOfMonth And CurrentDate.Month = MonthMonth And CurrentDate.Year Then |
| Dim currentCell As TableCell = e.Cell |
| currentCell.Style("background-color") = "green" |
| End If |
| End If |
| _Date = _Date.AddDays(14) |
| Loop |
| End Sub |
