This is a migrated thread and some comments may be shown as answers.

Radscheduler rowheight expands when appointment is present

2 Answers 83 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Kanchana
Top achievements
Rank 1
Kanchana asked on 30 Nov 2011, 11:20 AM
Hi,

I am using Radscheduler for checking room availability as in one of your demos. However, I am using the timeline view instead of day view as I want the timescales at the top. There are 2 issues in this.
1. Even though I set the row height, it expands automatically for rows having an appointment. (Please see attached snapshot)
2. The previous and next buttons on the navigation pane work only one day back and forward and no further. How canI correct this? Or if this is the default behaviour in the tiemline view, how can I hide these buttons alone and not the calendar as I need navigation to see availability for other days

Code snippet is below. Any help appreciated.

Thanks.

<telerik:RadScheduler runat="server" ID="rsBookings" DataSourceID="odsBookings" RowHeight="50px" TimelineView-HeaderDateFormat="dd/MM/yyyy"
            DataKeyField="BookingID" DataSubjectField="Description" DataStartField="StartDate" DataEndField="EndDate"
            GroupBy="Room" GroupingDirection="Vertical" StartEditingInAdvancedForm="false" SelectedView="TimelineView" 
            TimelineView-TimeLabelSpan="1" TimelineView-SlotDuration="00:30:00" TimelineView-NumberOfSlots="48" 
            TimelineView-ColumnHeaderDateFormat="HH:mm" DayStartTime="00:00" DayEndTime="23:59"  ColumnWidth="80px"         
            AllowDelete="false" AllowEdit="false" AllowInsert="false" CustomAttributeNames="Description, CompanyName, BookingID"
            OnDataBound="rsBookings_DataBound">
            <AdvancedForm Modal="true" />
            <TimelineView UserSelectable="false" />
            <WeekView UserSelectable="false" />
            <MonthView UserSelectable="false" />
            <DayView UserSelectable="false" />
            <ResourceTypes>
                <telerik:ResourceType KeyField="RoomID" Name="Room" TextField="Name" ForeignKeyField="RoomID"
                    DataSourceID="odsRooms" />
            </ResourceTypes>
            <AppointmentTemplate>
                <a href='BookingDetails.aspx?BookingID=<%# Eval ("BookingID") %>'><%# Eval("Description") %></a>
                <br />
                <%# Eval("CompanyName")%> 
            </AppointmentTemplate>
            <TimeSlotContextMenuSettings EnableDefault="true" />
            <AppointmentContextMenuSettings EnableDefault="true" />
        </telerik:RadScheduler
  
  
Code Behind:
  
  
protected void Page_Load(object sender, EventArgs e)
        {
           rsBookings.SelectedDate = DateTime.Today;
            }

2 Answers, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 02 Dec 2011, 04:43 PM
Hi Kanchana,

Please try setting the ShowInsertArea property to false:
<TimelineView UserSelectable="false" ShowInsertArea="false" />


Greetings,
Kalina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Kanchana
Top achievements
Rank 1
answered on 05 Dec 2011, 03:31 PM
Thanks Kalina.. Worked like magic
Tags
Ajax
Asked by
Kanchana
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Kanchana
Top achievements
Rank 1
Share this question
or