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

Change Timeline in Multiday calender with Text value

1 Answer 88 Views
Calendar & Scheduling
This is a migrated thread and some comments may be shown as answers.
ruchin
Top achievements
Rank 1
ruchin asked on 05 Jan 2019, 06:20 AM

Hello!

I am trying  to change default timeline in multiday calender mode with text value such as name .I have implemented telerik ui calender on my android device . 

Attached 2 images i.e. Img Telerik A.png (Implemented on Device)  and Img Telerik B.png (Required).

I want marked timeline in as 1 in Img Telerik A.png to change into marked text  as 2 in Img Telerik B.png.

Code Snippet for calender as follows:

TelerikCalender.xaml

<telerikInput:RadCalendar x:Name="calendar" AppointmentsSource="{Binding Appointments}" AppointmentTapped="Calendar_AppointmentTapped"  NativeControlLoaded="Calendar_NativeControlLoaded">
            <telerikInput:RadCalendar.MultiDayViewSettings>
                <telerikInput:MultiDayViewSettings VisibleDays="7"
                DayStartTime="9:00:00"
                DayEndTime="18:00:00"
                TimelineInterval="1:00"
                IsWeekendVisible="True"                 
                IsCurrentTimeIndicatorVisible="False" />
            </telerikInput:RadCalendar.MultiDayViewSettings>
            <telerikInput:RadCalendar.MultiDayViewStyle>
                <telerikInput:MultiDayViewStyle
                AllDayAreaBackgroundColor="Beige"
                AllDayAppointmentBackgroundColor="CornflowerBlue"
                AllDayAppointmentTextColor="White"
                CurrentTimeIndicatorColor="Blue"
                AppointmentFontSize="11"
                AllDayAppointmentFontSize="11" />
            </telerikInput:RadCalendar.MultiDayViewStyle>
        </telerikInput:RadCalendar>

TelerikCalender.xaml.cs

 private void Calendar_NativeControlLoaded(object sender, EventArgs e)
        {
            (sender as RadCalendar).TrySetViewMode(CalendarViewMode.MultiDay);            
        }

Please let me know if its possible and if yes how to implement the same.

Thanks in Advance.

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 07 Jan 2019, 01:58 PM
Hi Ruchin,

Thank you for providing the screenshots as well as the snippet.

I have researched various approaches for accomplishing the scenario you have, still, I am afraid RadCalendar does not provide a feasible way to achieve it. In short, the control does not expose API for changing the timeline labels' values, you could customize only their font and styling.  Additionally, even if the names could be updated, the appointments are arranged according to their Start/End times and you would need to change these values to place them according to some other criteria.

Another approach for achieving a similar view is to use RadDataGrid control with TemplateColumn, which could contain the list of Appointments.
 
Let me know if you have any additional questions on Telerik Xamarin controls.

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Calendar & Scheduling
Asked by
ruchin
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or