Migration from RadScheduler to RadScheduleView
-
HI, I am migrating from RadShceduler control from RadScheduleView for some performance problem. The requirement is to invoke the appointment create event in single click. In scheduler we have the TimeSloteItem which is not in RadScheduleView. I created a control template for timeslotitem and had the inputbindings to invoke the radscheduler appointment create event. I dont know how to achieve this in RadScheduleView. Plz Help... I used the following style..
<Style x:Key="AllDayTimeSlotStyle" TargetType="{x:Type telerik1:TimeSlotItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type telerik1:TimeSlotItem}"> <Grid x:Name="LayoutRoot"> <Grid.InputBindings> <MouseBinding MouseAction="LeftClick" Command="commands:SchedulerCustomCommands.CreateAppointment" CommandParameter="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}}" /> </Grid.InputBindings> . . . . . </ControlTemplate> </Setter.Value> </Setter> </Style>
-
HI, I am migrating from RadShceduler control from RadScheduleView for some performance problem. The requirement is to invoke the appointment create event in single click. In scheduler we have the TimeSloteItem which is not in RadScheduleView. I created a control template for timeslotitem and had the inputbindings to invoke the radscheduler appointment create event. I dont know how to achieve this in RadScheduleView. Plz Help... I used the following style..
<Style x:Key="AllDayTimeSlotStyle" TargetType="{x:Type telerik1:TimeSlotItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type telerik1:TimeSlotItem}"> <Grid x:Name="LayoutRoot"> <Grid.InputBindings> <MouseBinding MouseAction="LeftClick" Command="commands:SchedulerCustomCommands.CreateAppointment" CommandParameter="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}}" /> </Grid.InputBindings> . . . . . </ControlTemplate> </Setter.Value> </Setter> </Style>
I find telerik support absolutely excellent for their controls, generally a sample app appears to solve most issues. Have you tried their forums.
Never underestimate the power of human stupidity RAH
-
HI, I am migrating from RadShceduler control from RadScheduleView for some performance problem. The requirement is to invoke the appointment create event in single click. In scheduler we have the TimeSloteItem which is not in RadScheduleView. I created a control template for timeslotitem and had the inputbindings to invoke the radscheduler appointment create event. I dont know how to achieve this in RadScheduleView. Plz Help... I used the following style..
<Style x:Key="AllDayTimeSlotStyle" TargetType="{x:Type telerik1:TimeSlotItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type telerik1:TimeSlotItem}"> <Grid x:Name="LayoutRoot"> <Grid.InputBindings> <MouseBinding MouseAction="LeftClick" Command="commands:SchedulerCustomCommands.CreateAppointment" CommandParameter="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}}" /> </Grid.InputBindings> . . . . . </ControlTemplate> </Setter.Value> </Setter> </Style>
Hi Jeyakumarbics1, You don't need to create new template for TimeSlotItem. You need to attach function to MouseLeftButtonUp of RadScheduleView and in body of this function you need to create and execute CreateAppointment command.
private void ScheduleView\_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e) { System.Windows.Input.RoutedUICommand createAppointment = RadScheduleViewCommands.CreateAppointment; createAppointment.Execute(null, this.ScheduleView); }