RadScheduler for Silverilght Beta

Thread is closed for posting
82 posts, 0 answers
  1. Thomas
    Thomas avatar
    5 posts
    Member since:
    Jun 2009

    Posted 09 Jun 2009 Link to this post

    Hi, concerning my problem with the "TextBlock. Text does not support Binding as content" error: I finally managed to reproduce the problem in a small test application. It occurs whenever you have a DataGrid on the same page where the RadScheduler control is residing (and ViewMode is Day or Week), ... and the DataGrid contains a RowDetailsTemplate, ... and the RowDetailsTemplate contains an Image control where the Source property is bound to the property of an object containing a String version of the Uri to the image. If the RadScheduler control is not part of the xaml, the DataGrid works fine. And if we remove the Image from the RowDetails template everything works fine as well.

    So here is some example code:

    the xaml file:

    <UserControl x:Class="RadSchedulerProblem.Page" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler"  
        xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"  
        > 
         
            
        <Grid x:Name="LayoutRoot"
            <Grid.RowDefinitions> 
                <RowDefinition Height="auto"/> 
                <RowDefinition Height="*"/> 
            </Grid.RowDefinitions> 
     
            <data:DataGrid Grid.Row="1" AutoGenerateColumns="False" x:Name="SomeDataGrid"
                <data:DataGrid.RowDetailsTemplate> 
                    <DataTemplate> 
                        <Border Margin="5" BorderBrush="Gray" BorderThickness="1"  Background="White"
                            <StackPanel Orientation="Horizontal"
                                <Image Source="{Binding MyUrlImage}"></Image> 
                                <TextBlock Margin="10" Text="{Binding Summary}"></TextBlock> 
                            </StackPanel> 
                        </Border> 
                    </DataTemplate> 
                </data:DataGrid.RowDetailsTemplate> 
                <data:DataGrid.Columns> 
                    <data:DataGridTemplateColumn  
                            Header="Type"  
                            IsReadOnly="True"
                        <data:DataGridTemplateColumn.CellTemplate> 
                            <DataTemplate> 
                                <Image Source="{Binding MyUrlImage}"></Image> 
                            </DataTemplate> 
                        </data:DataGridTemplateColumn.CellTemplate> 
                    </data:DataGridTemplateColumn> 
                </data:DataGrid.Columns> 
            </data:DataGrid> 
         
            <telerik:RadScheduler x:Name="Scheduler" Grid.Row="0"
            </telerik:RadScheduler> 
     
        </Grid> 
    </UserControl> 

    ... the cs file:

    using System.Collections.ObjectModel; 
    using System.Windows.Controls; 
     
    using System.Collections.ObjectModel; 
    using System.Windows.Controls; 
    using Telerik.Windows.Controls; 
     
    namespace RadSchedulerProblem 
        public class SomeDataClass 
        { 
            public string MyUrlImage { getset; } 
            public string Summary { getset; } 
            public string SomeText { getset; } 
        } 
     
        public partial class Page : UserControl 
        { 
            public Collection<SomeDataClass> someDataCollection = new Collection<SomeDataClass>(); 
     
            public Page() 
            { 
                someDataCollection.Add(new SomeDataClass() {  
                    SomeText = "The first class",  
                    Summary = "Summmary of the first class"
                    MyUrlImage = "../../Images/someImage.png" 
                }); 
                InitializeComponent(); 
                SomeDataGrid.ItemsSource = someDataCollection; 
                 
                //Disabling this line or setting it to the Month view does NOT cause the crash 
                Scheduler.ViewMode = SchedulerViewMode.Week; 
     
     
            } 
        } 

    Hopefully this helps to find the exact cause/solution.

    I guess the problem has something to do with the standard Theme/template? Using Silverlight Spy, I can see e.g. following errors (among others):
    System.Windows.Data Error: BindingExpression path error: 'AppointmentSlots' property no found on 'Telerik.Windows.Controls.AppointmentsControl' 'Telerik.Windows.Controls.AppointmentsControl' (HashCode=61759636). BindingExpression: Path='AppointmentSlots' DataItem='Telerik.Windows.Controls.AppointmentsControl' (HashCode=61759636); target element is 'Telerik.Windows.Controls.AppointmentItemsControl' (Name='PART_AppointmentItemsControl'); target property is 'ItemsSource' (type 'System.Collections.IEnumerable').. 
    System.Windows.Data Error: BindingExpression path error: 'ActualWidth' property no found on 'Start: 1/06/2009 0:00:00, End: 2/06/2009 0:00:00' 'Telerik.Windows.Controls.Scheduler.TimeSlot' (HashCode=249559211). BindingExpression: Path='ActualWidth' DataItem='Start: 1/06/2009 0:00:00, End: 2/06/2009 0:00:00' (HashCode=249559211); target element is 'System.Windows.Controls.ContentPresenter' (Name=''); target property is 'Width' (type 'System.Double').. 
    System.Windows.Data Error: BindingExpression path error: 'ActualHeigh' property no found on 'Start: 1/06/2009 0:00:00, End: 2/06/2009 0:00:00' 'Telerik.Windows.Controls.Scheduler.TimeSlot' (HashCode=249559211). BindingExpression: Path='ActualHeigh' DataItem='Start: 1/06/2009 0:00:00, End: 2/06/2009 0:00:00' (HashCode=249559211); target element is 'System.Windows.Controls.ContentPresenter' (Name=''); target property is 'Height' (type 'System.Double').. 
     


  2. Thomas
    Thomas avatar
    5 posts
    Member since:
    Jun 2009

    Posted 09 Jun 2009 Link to this post

    Hi, I'm trying to inherit my custom Scheduler from the RadScheduler... however this doesn't seem to work.

    using Telerik.Windows.Controls; 
     
    namespace RadSchedulerProblem 
        public class MyRadScheduler:RadScheduler 
        { 
            public override void OnApplyTemplate() 
            { 
                base.OnApplyTemplate(); 
     
                //now do something specific 
            } 
        } 

    <UserControl x:Class="RadSchedulerProblem.Page" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
        xmlns:RadSchedulerProblem="clr-namespace:RadSchedulerProblem"  
        > 
        <StackPanel Orientation="Vertical"
            <RadSchedulerProblem:MyRadScheduler x:Name="Scheduler"
            </RadSchedulerProblem:MyRadScheduler> 
        </StackPanel>        
    </UserControl> 

    When I try to run this, the application always crashes (not always same error).

    Is this not possible?

    Tx for the feedback.
  3. DevCraft banner
  4. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 10 Jun 2009 Link to this post

    Hello Thomas,

    About your first problem - the reason to receive this error is that the binding {Binding MyUrlImage} returns null. Even If you remove the scheduler control still "Image Error" error message will appear. To solve the problem I suggest you set the DataContext property of the DataGrid to the instance of class SomeDataClass.

    For example
    public Page() 
            { 
                someDataCollection.Add(new SomeDataClass() 
                { 
                    SomeText = "The first class"
                    Summary = "Summmary of the first class"
                    MyUrlImage = "del_big.png" 
                }); 
                InitializeComponent(); 
                SomeDataGrid.ItemsSource = someDataCollection; 
                SomeDataGrid.DataContext = someDataCollection[0]; 
                //Disabling this line or setting it to the Month view does NOT cause the crash  
               Scheduler.ViewMode = SchedulerViewMode.Week; 
     
     
            } 

    For your second problem - you are absolutely right. We already fixed this problem and the fix will be included in our official release.

    Your Telerik points have been updated.

    Sincerely yours,
    Rosi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 10 Jun 2009 Link to this post

    Hi
    I need some help regarding Rad Schedular.I want to track the event of edit form like save and edit recurrence,and i need also some custmazation on my form.so please provide some way.
  6. Thomas
    Thomas avatar
    5 posts
    Member since:
    Jun 2009

    Posted 10 Jun 2009 Link to this post

    Thanks for the response.
    About the first problem: you are right, ... the datacontext was not explicitily set, causing the binding of the Image to fail ... however ... it is strange that the page loads perfectly if there is no RadScheduler control included. In the project where I tried to integrate the RadScheduler Silverlight control (project is quite big, making it not really possible to post the code ... if I have time, I will try to post another example project soon) it seems that the scheduler makes every page crash containing an Image control whose value is not immediately set to a value.  Without the RadScheduler, the pages load perfectly (not showing the image or showing the image once it is available (once the service finished loading the data for the itemssource).
  7. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 11 Jun 2009 Link to this post

    Hi ,

    @Prabhat,

    I suggest you review our online wpf example illustrating how to customize the edit dialog.
    You can also download our Silverlight application illustrating the same approach for Silverlight.

    Also, RadScheduler supports the following events which you can use to complete your task
              
     AppointmentEditing - Occurs when the appointment edit command is initialized and edit dialog window is about to be shown.
               
    AppointmentEdited - Occurs when the appointment edit has finished and the appointment changes are applied.
              
     AppointmentSaving - Occurs before the appointment is saved.Also you can cancel the appointment saving.

    @Thomas,we have tested your code at our side and we received an "Image Error" message even if the scheduler is removed from the application. However we will continue to investigate the problem and notify you when we have a result. We will also appreciate if you provide us with a project illustrating that the error persist only if the scheduler is on the page to test it locally.

    Best wishes,
    Rosi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 12 Jun 2009 Link to this post

    hi
    when i write a code
    Telerik.Windows.Controls.StyleManager.SetTheme(telRadSchedular, new VistaTheme());
     on xaml.cs page load event , the appearance and visual style of the radschedular remains same,means there are no effect.
    is there is any other way to change the theme of radschedular.
    also i want to change the font  and color of day,week and  month which is mentaioned on the top of the radschedular header, using silverlight 3
  9. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 12 Jun 2009 Link to this post

    Hi
    when i create our own custom template like
     <DataTemplate x:Key="AppointmentTemplate">
    some code:--------
    </DataTemplate>
    and call like this
    <telerikscheduler:RadScheduler x:Name="telRadSchedular" AppointmentTemplate="{StaticResource AppointmentTemplate}"
    in this case this case it is not working,its showing the previous one which is given by the telerik.
    please give me some way to create our own custom template for appoinments, using silverlight 3

    Thanks
    prabhat



  10. Koen
    Koen avatar
    8 posts
    Member since:
    Jun 2009

    Posted 12 Jun 2009 Link to this post

    Hi,
    I have a problem with the RadScheduler control for Silverlight 3.
    When I use standard appointments it works fine, but when I apply a custom template to an appointment, the application crashes when an appointment is added.

    If you want I can give you the exact error I get, but it seems to me that it's not even relevant to the problem.

    I can simulate the problem even with a simple application like this:

    <UserControl x:Class="SilverlightApplication1.MainPage" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler"   
        Width="800" Height="600">  
          
        <UserControl.Resources> 
            <DataTemplate x:Key="MyTemplate">  
                <Border> 
                    <TextBlock Text="..."/>  
                </Border> 
            </DataTemplate> 
        </UserControl.Resources> 
     
     
        <Grid x:Name="LayoutRoot" Background="White">  
            <telerik:RadScheduler x:Name="Scheduler" AppointmentTemplate="{StaticResource MyTemplate}"></telerik:RadScheduler> 
        </Grid> 
    </UserControl> 

    Koen
  11. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 12 Jun 2009 Link to this post

    Hi
    Is there is any way to disable the check box all day event and edit recurrance button in silverlight 3
  12. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 16 Jun 2009 Link to this post

    Hi

    I am facing problem to create a custom template and the way is
     <UserControl.Resources> 
            <DataTemplate x:Key="MyTemplate">  
                <Border> 
                    <TextBlock Text="..."/>  
                </Border> 
            </DataTemplate> 
        </UserControl.Resources> 
     
     
        <Grid x:Name="LayoutRoot" Background="White">  
            <telerik:RadScheduler x:Name="Scheduler" AppointmentTemplate="{StaticResource MyTemplate}"></telerik:RadScheduler> 
        </Grid> 

    is this is right way to create a custom teplate,if not plz provide me the some way


  13. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 16 Jun 2009 Link to this post

    Hi All,

    @ Prabhat,

    The beta version of the control does not include different themes. It includes OfficeBlack theme only. The rest of the themes will be available in the official version, which will be released in the beginning of next month.

    Also, your way of setting custom appointment template seems correct. You can download our application where this works as expected and review it. If this does not help you, I suggest you send us sample working project to test it.

    As for disabling the buttons and checkbox in the edit form - you can apply a style to EditAppointmentStyle property of RadScheduler and customize the whole edit dialog window including the all day checkbox and the edit recurrence appointment button. You can read more about it here .

    @Koen, thank you for noticing this. We will do our best to solve this problem for the official version.
    Your Telerik points have been updated.

    Regards,
    Rosi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  14. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 16 Jun 2009 Link to this post

    In the Radscheduler assembly, there is a DateTimePicker control.  In the released version of the SL3 RadControls, will this control be available, and will it remain in the Scheduler assembly?

    In using the DateTimePicker control, I have noticed that the Time combobox gets cut off at the bottom during the display.  For example, if I set Height="20" and FontSize="10", the date box is displayed properly, but the time box is cut off at the bottom.
  15. Prashant
    Prashant avatar
    5 posts
    Member since:
    May 2009

    Posted 17 Jun 2009 Link to this post

    Hi,

    Is it possible to modify the existing modal dialog box to schedule the appointment means i want to hide "All day event check box" as well as "Edit recurrence button" in existing dialog box? If yes then please provide me a sample code to modify it and If no then please provide me a sample code to hide the existing modal dialog box and open our window to schedule the appointment.

    Also i want to display the time in RAD scheduler as 12 hour format means 09:00 AM, 11:30 PM etc so please provide me a solution to change this.

    Thanks In Advance
  16. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 17 Jun 2009 Link to this post

    Hi,
    Thanks for your response.
    I am doing the same approach to resolve the problem,but still it creating the problem. I am using the silverlight 3.
    As per your response i am sending my code:

       <telerikscheduler:RadScheduler x:Name="telRadSchedular" AppointmentSaving="telRadSchedular_AppointmentSaving" AppointmentDeleting="telRadSchedular_AppointmentDeleting"
                                               ViewMode="Day"  Height="Auto" Width="Auto" Margin="0,5,0,-10" d:LayoutOverrides="Height" >
                    <telerikscheduler:RadScheduler.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FF535353"/>
                            <GradientStop Color="#FF69D4D4" Offset="1"/>

                        </LinearGradientBrush>

                    </telerikscheduler:RadScheduler.Background>
                    <telerikscheduler:RadScheduler.DayViewDefinition>
                        <telerikscheduler:DayViewDefinition  VisibleDays="1" TimeSlotLength="0:10:0" DayStartTime="9:0:0" DayEndTime="17:0:0"  ></telerikscheduler:DayViewDefinition>
                    </telerikscheduler:RadScheduler.DayViewDefinition>
                    <telerikscheduler:RadScheduler.AppointmentTemplate>
                        <DataTemplate>
                            <Grid Background="YellowGreen">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="20" />
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                

                                <controls:WrapPanel Background="#FF007493">
                                    <TextBox x:Name="PART_SubjectTextBox" Margin="7 0 0 0" BorderThickness="0" Background="Transparent">
                                        <TextBox.Template>
                                            <ControlTemplate TargetType="TextBoxBase">
                                                <Border Background="{TemplateBinding Panel.Background}"
                                             BorderBrush="{TemplateBinding Border.BorderBrush}"
                                             BorderThickness="{TemplateBinding Border.BorderThickness}">

                                                    <ScrollViewer Name="PART_ContentHost" />
                                                </Border>
                                            </ControlTemplate>
                                        </TextBox.Template>
                                    </TextBox>
                                </controls:WrapPanel>
                                <TextBlock Grid.Row="1" Text="{Binding Path=Occurrence.Appointment.Body}" TextWrapping="Wrap" />
                            </Grid>
                        </DataTemplate>
                    </telerikscheduler:RadScheduler.AppointmentTemplate>




                    <telerikscheduler:RadScheduler.EditAppointmentStyle>
                     <Style TargetType ="{x:Type telerikscheduler:AppointmentDialogWindow}">
                            <Setter Property="Background" Value="#FFC8C8C8" />
                            <Setter Property="Title" Value="{Binding Path=Occurrence.Appointment, Converter={StaticResource AppointmentToTitleConverter}, RelativeSource={x:Static RelativeSource.Self}}" />
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate TargetType="{x:Type telerik:AppointmentDialogWindow}">
                                        <Grid DataContext="{TemplateBinding EditedAppointment}" Background="{TemplateBinding Background}" Width="430" Height="300">
                                            <Grid.Resources>
                                                <Style TargetType="{x:Type Label}">
                                                    <Setter Property="HorizontalAlignment" Value="Right" />
                                                    <Setter Property="VerticalAlignment" Value="Top" />
                                                    <Setter Property="Margin" Value="0, 10, 0, 2" />
                                                </Style>
                                            </Grid.Resources>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto" />
                                                <RowDefinition Height="Auto" />
                                                <RowDefinition Height="Auto" />
                                                <RowDefinition Height="Auto" />
                                                <RowDefinition Height="*" MinHeight="100" />
                                                <RowDefinition Height="Auto" />
                                            </Grid.RowDefinitions>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" MinWidth="100" />
                                                <ColumnDefinition Width="*" MinWidth="315"/>
                                            </Grid.ColumnDefinitions>


                                            <controls:Label Content="Subject" />
                                            <TextBox x:Name="Subject" Grid.Column="1" TabIndex="0" Text="{Binding Path=Subject}" MaxLength="255" Margin="10, 10, 20, 2" />
                                            <controls:Label Grid.Row="1"  Content="Start" />
                                            <telerikinput:RadDatePicker x:Name="StartDateTime" Grid.Row="1"  Grid.Column="1" Margin="10, 10, 0, 2" IsEnabled="False"   />
                                            <controls:Label Grid.Row="2" Content="End" />
                                            <telerikinput:RadDatePicker x:Name="EndDateTime"   Grid.Row="2" Grid.Column="1" Margin="10, 10, 0, 2" IsEnabled="False"   />
                                            <controls:Label Grid.Row="3"  Content="Body" />
                                            <TextBox Name="Body" Grid.Row="3"  Grid.Column="1" Text="{Binding Path=Body}" TextWrapping ="NoWrap"
                                                     ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
                                                     AcceptsReturn="true"  Margin="10, 10, 20, 2" />
                                            <StackPanel Grid.Row="5" Grid.Column="1" Orientation="Horizontal" Margin="10, 10, 0, 10">
                                                <Button  Content="Save" />
                                            </StackPanel>
                                        </Grid>
                                        <ControlTemplate.Triggers>
                                            <Trigger SourceName="allDayEventCheckbox" Property="IsChecked" Value="true">
                                                <Setter TargetName="StartDateTime" Property="TimePickerVisibility" Value="Collapsed" />
                                                <Setter TargetName="EndDateTime" Property="TimePickerVisibility" Value="Collapsed" />
                                            </Trigger>
                                            <DataTrigger Binding="{Binding EditedAppointment.RecurrenceRule}" Value="{x:Null}">
                                                <Setter TargetName="StartDateTime" Property="IsEnabled" Value="True" />
                                                <Setter TargetName="EndDateTime" Property="IsEnabled" Value="True" />
                                                <Setter TargetName="allDayEventCheckbox" Property="IsEnabled" Value="True" />
                                            </DataTrigger>
                                        </ControlTemplate.Triggers>

                                    </ControlTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </telerikscheduler:RadScheduler.EditAppointmentStyle>



                </telerikscheduler:RadScheduler>

    Thanks
    Prabhat
  17. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 18 Jun 2009 Link to this post

    Hello All,

    @GEB, this control will be included in Silverlight 3 version of the control. It will be in the Telerik.Windows.Controls.Scheduler assembly as it was designed for internal use of RadScheduler. This control was not designed for usage outside the scheduler control.


    @Prashant, you can download our sample application and see how the dialog,and the buttons inside it are customized. You can also review our help article for more details.
    Do not hesitate to contact us if you have any problems related to our controls.

    @Prabhat, thank you for the provided code. We will investigate the problem and write here as soon we find a solution. Your Telerik points have been updated! Thank you.


    Greetings,
    Rosi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  18. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 18 Jun 2009 Link to this post

    Hi
    Thanks for your response.
    How can we bind the red scheduler with the data base using silverlight 3
    I am using   "telRadSchedular.AppointmentsSource = e.Result;" in this
    case "AppointmentsSource" consists all the data from database but it
    is unable to show(All Appoinments) on RadSchedular, at page load event.

    Thanks
    Prabhat
  19. Prashant
    Prashant avatar
    5 posts
    Member since:
    May 2009

    Posted 22 Jun 2009 Link to this post

    Hi All,

    We are working on Silverlight 3.0 beta.
    We are able to insert the appointments into SQL Server 2008 database from Rad Scheduler's existing modal dialog box but scheduled appointments in the Database are not visible in Rad Scheduler at run time. Following is the code iam implementing please let me know where iam missing:

    private void BindAppoinments()

            {

                try

                {

                    //create object of bussiness class

                    PatientsService.SearchPatientClient objSearchPatient = new IntuitivEMR.PatientsService.SearchPatientClient();

                    // calling method from the bussiness layer for search based on the parameter

                    objSearchPatient.GetAppoinmentIDCompleted += new EventHandler<IntuitivEMR.PatientsService.GetAppoinmentIDCompletedEventArgs>(objSearchPatient_GetAppoinmentIDCompleted);

                    objSearchPatient.GetAppoinmentIDAsync();

                   

                }

                catch (Exception ex)

                {

                    MessageBox.Show(ex.Message.ToString());

                }

            }

     

            void objSearchPatient_GetAppoinmentIDCompleted(object sender, IntuitivEMR.PatientsService.GetAppoinmentIDCompletedEventArgs e)

            {

                try

                {

                    if (e.Result.Count > 0)

                    {                   

                        telRadSchedular.AppointmentsSource = e.Result;                                   

                    }

                }

                catch (Exception ex)

                {

                    MessageBox.Show(ex.Message.ToString());

                }

            }

  20. Anoop
    Anoop avatar
    3 posts
    Member since:
    Jun 2009

    Posted 23 Jun 2009 Link to this post

    How can i customize the size and colour of the RadScheduler header?
  21. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 23 Jun 2009 Link to this post

    Hello All,

    Prashant and Prabhat,

    I suggest you bind RadScheduler to a collection containing items implementing IAppointment interface. For more details you can read our KB article- How to bind RadScheduler to SQL data source using LINQ. If this does not help you I suggest you send us sample running project illustrating the problem. We will test it and provide you with a solution.

    Anoop,

     in the current version of the control this feature is not supported. In the official version of RadScheduler we will include a property which you can use to set a custom style of the header.

    All the best,
    Rosi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  22. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 26 Jun 2009 Link to this post

    Hi
    Thanks for your response.
    I am able to schedule appointment and also reschedule with the existing dialog box.
    but in case of custom dialog box Iappointment  interface has only contaning the existing dialog fields
    like subject,end ,start etc and i am getting these value using
    e.appointment.subject = what ever the value from the existing dialog box.
    but when i add a new field like room in custom dialog box,then i am not able to
    get the value using:
     e.appointment.room = some value because the class has not a property like room.
    then in this case what is the method to accomplish these task.

    Regards
    Prabhat





  23. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 29 Jun 2009 Link to this post

    Hi
    using this

     <telerikscheduler:RadScheduler.DayViewDefinition>
                            <telerikscheduler:DayViewDefinition  VisibleDays="1"  TimeSlotLength="0:10:0" DayStartTime="9:0:0" DayEndTime="17:0:0" LargeChangeInterval="2d"  ></telerikscheduler:DayViewDefinition>
                        </telerikscheduler:RadScheduler.DayViewDefinition>

    i got time slot like 9-10-11-12 and so on based on the time slot length, but i want to display time time like
    9am-10am-11am-12pm.
    Is it possible in radschedular using silverlight 3.

    thanks
    prabhat
  24. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 29 Jun 2009 Link to this post

    Hi
    using this

     <telerikscheduler:RadScheduler.DayViewDefinition>
                            <telerikscheduler:DayViewDefinition  VisibleDays="1"  TimeSlotLength="0:10:0" DayStartTime="9:0:0" DayEndTime="17:0:0" LargeChangeInterval="2d"  ></telerikscheduler:DayViewDefinition>
                        </telerikscheduler:RadScheduler.DayViewDefinition>

    i got time slot like 9-10-11-12 and so on based on the time slot length, but i want to display time  like
    9am-10am-11am-12pm.
    Is it possible in radschedular using silverlight 3.

    thanks
    prabhat
  25. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 30 Jun 2009 Link to this post

    Hi Prabhat,

    You can cast e.Appointment to your custom  appointment type. For example you can subscribe to the AppointmentEditing event of RadScheduler  in the sample application and execute the following code:
     
       private void scheduler_AppointmentEditing(object sender, AppointmentEditingEventArgs e) 
            { 
                string room =(e.Appointment as MeetingAppointment).MeetingRoom; 
            } 

    As for the Time Ruler format string - you can find the TimeRuler control and set its TimeFormatString property.

    For example:
    scheduler.ChildrenOfType<TimeRuler>()[0].TimeFormatString = "your format string"

    Hope this helps.

    Regards,
    Rosi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  26. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 30 Jun 2009 Link to this post

    Hi
    Thanks for your response.
    Is it possible to drag and drop appointment of one radschedular to another radschedular.
    suppose one schedular for one doctor and another schedular for another doctor.and
    i want to reschedule the appointment of one doctor to other.

    regards
    prabhat
  27. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 01 Jul 2009 Link to this post

    Hello Prabhat,

    This is not possible with current version of the control. However, we will try to implement this feature for future versions of the controls.

    Regards,
    Rosi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  28. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 01 Jul 2009 Link to this post

    Hi
    thanks for your response.
    my last query was, is it is possible to to show date in 9am,10am form and your replay was
    telRadSchedular.ChildrenOfType<TimeRuler>()[0].TimeFormatString = "any format string";
    this means like:
    telRadSchedular.ChildrenOfType<TimeRuler>()[0].TimeFormatString = "9AM"; (but this is not working)
    or
    telRadSchedular.ChildrenOfType<TimeRuler>()[0].TimeFormatString = "?";

    and i also want to change the color of schedule appointment,and mouse over of that particular achedule appointment
    i want to open a pop up.

    thanks
    prabhat




  29. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 01 Jul 2009 Link to this post

    Hi
    Is it possible to open a pop up or a tool-tip on mouse over on scheduled appointment slot
    using silverlight 3,because it allready possibe with wpf,but some of the property is not supported to
    silverlight3.

    Regards
    prabhat
  30. prabhat
    prabhat avatar
    35 posts
    Member since:
    Jun 2009

    Posted 02 Jul 2009 Link to this post

    Hi
    In one of your demo which is given on top of the page, in which the all ready scheduled appointment
    have different color like green,yellow and blue.I have a requirement to show different color like above
    for different scheduled appointment based on the appointment type like surgery have blue color slot,
    simple visit have red and so on. Is it possible using silverlight 3 .

    Regards
    Prabhat
     
  31. Mickey
    Mickey avatar
    39 posts
    Member since:
    Mar 2009

    Posted 04 Jul 2009 Link to this post

    Hi,
    Any time frame when you will have resource grouping for the SilverLight scheduler control?
    Mickey
Back to Top
DevCraft banner