This question is locked. New answers and comments are not allowed.
Hi Team,
I have created a test project to have 10 users with 600 Appointment for each users.
when go to the timlineview to today view or any view its taking to much time to load.
Please let me know what we can do to remove this performance issue. or let us know how many Appointment a user can handle?
I am opening the view after a button click even i need to wait for a while to load the view with data first time.
here is my code.
I have created a test project to have 10 users with 600 Appointment for each users.
when go to the timlineview to today view or any view its taking to much time to load.
Please let me know what we can do to remove this performance issue. or let us know how many Appointment a user can handle?
I am opening the view after a button click even i need to wait for a while to load the view with data first time.
here is my code.
<Window x:Class="OPTIClient.ScheduleView" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Title="Ecomond Schedule View " Height="600" Width="800" x:Name="WindowMain"> <Grid> <telerik:RadScheduleView Name="RadScheduleView_users" AppointmentsSource="{Binding Appointments}" telerik:Theming.Theme="Office_Blue" FirstDayOfWeek="Monday" NavigationHeaderVisibility="Visible" FontFamily="Verdana" FontSize="11" DataContext="{Binding}"> <telerik:RadScheduleView.ViewDefinitions> <telerik:TimelineViewDefinition MinorTickLength="1day" MajorTickLength="1day" VisibleDays="20" DayStartTime="9:30" DayEndTime="6:30" Orientation="Horizontal" /> <telerik:DayViewDefinition Orientation="Horizontal" ShowAllDayArea="True" DayStartTime="9:30" DayEndTime="6:30" EnableSmallAppointmentRendering="True" Title="Today" CalendarWeekRule="FirstFullWeek" /> <telerik:WeekViewDefinition Orientation="Horizontal" ShowAllDayArea="True" Title="This Week" DayStartTime="9:30" DayEndTime="6:30"/> <telerik:MonthViewDefinition Title="This month" DayStartTime="9:30" DayEndTime="6:30" /> </telerik:RadScheduleView.ViewDefinitions> <telerik:RadScheduleView.ResourceTypesSource> <telerik:ResourceTypeCollection > <telerik:ResourceType Name="Resources" AllowMultipleSelection="True"> <telerik:Resource ResourceName="Ville Pietikäinen" /> <telerik:Resource ResourceName="Matti Tuukkanen" /> <telerik:Resource ResourceName="Seppo Vatanen" /> <telerik:Resource ResourceName="Pekka Keränen" /> <telerik:Resource ResourceName="Harri Viitamäki" /> <telerik:Resource ResourceName="Teemu Mustonen" /> <telerik:Resource ResourceName="Jari Järviluoton" /> <telerik:Resource ResourceName="Jussi Aksentjeff" /> <telerik:Resource ResourceName="Ari Heikkinen" /> <telerik:Resource ResourceName="Vivek Kumar" /> </telerik:ResourceType> </telerik:ResourceTypeCollection> </telerik:RadScheduleView.ResourceTypesSource> <telerik:RadScheduleView.GroupDescriptionsSource> <telerik:GroupDescriptionCollection> <telerik:DateGroupDescription /> <telerik:ResourceGroupDescription ResourceType="Resources" /> </telerik:GroupDescriptionCollection> </telerik:RadScheduleView.GroupDescriptionsSource> </telerik:RadScheduleView> </Grid></Window>using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Shapes;using System.Collections.ObjectModel;using Telerik.Windows.Controls.ScheduleView;using Telerik.Windows.Controls;namespace OPTIClient{ /// <summary> /// Interaction logic for Schedular.xaml /// </summary> public partial class ScheduleView : Window { public ScheduleView() { InitializeComponent(); this.DataContext = new ViewModel(); WindowMain.Title = "Ecomond TCS Opti" + " " + App_Version.Assemblyinfo(); AddRecords(); } private void AddRecords() { ObservableCollection<Appointment> appointments = new ObservableCollection<Appointment>(); Random random = new Random(1000); DateTime now = DateTime.Now; for( int i = 1; i < 600; i++ ) { Appointment appointment = new Appointment() { Body = "Appointment test", Subject = "Appointment " + i, Start = now.AddMinutes( i * 10 ), Location = "Seat " + i, }; appointment.End = appointment.Start.AddMinutes( 10 ); appointments.Add(appointment); appointment.Resources.Add(new Resource("Ville Pietikäinen", "Resources")); appointment.Resources.Add(new Resource("Matti Tuukkanen", "Resources")); appointment.Resources.Add(new Resource("Seppo Vatanen", "Resources")); appointment.Resources.Add(new Resource("Pekka Keränen", "Resources")); appointment.Resources.Add(new Resource("Harri Viitamäki", "Resources")); appointment.Resources.Add(new Resource("Teemu Mustonen", "Resources")); appointment.Resources.Add(new Resource("Jari Järviluoton", "Resources")); appointment.Resources.Add(new Resource("Jussi Aksentjeff", "Resources")); appointment.Resources.Add(new Resource("Ari Heikkinen", "Resources")); appointment.Resources.Add(new Resource("Vivek Kumar", "Resources")); } RadScheduleView_users.AppointmentsSource = appointments; } }}