RadScheduler for Silverilght Beta

Thread is closed for posting
82 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1521 posts
    Member since:
    Oct 2004

    Posted 29 May 2009 Link to this post

    Telerik Scheduler for Silverlight Public Beta

    Download Source

    Following the release plan of RadScheduler for Silverlight we are proud to take you one step further with the public RadScheduler for Silverlight Beta.  A week ago we launched a private build by sending it only to the beta testers that were willing to take part in this early beta release. Now that we managed to further improve the control, we are launching this public beta featuring the following major functionalities:   

    • Day/Week/Month View
    • Edit Forms
    • Recurring Appointments and Exceptions
    • Localization support
    • Built-in Dialogs
    • Drag & Drop and Resizing of appointments
    • Office Black theme
    • Ability for customizing appointments and edit dialog


    Other major features to come with the official Q2 2009 release are Import/Export to/from Outlook and 2 more themes (Vista and Summer), including several color variations.

    You can see a live example of RadScheduler for Silverlight at:
    http://demos.telerik.com/silverlight/radschedulerbeta

    The source code of the online example has been attached to this message.

    We are eager to receive your feedback and thoughts.

  2. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 29 May 2009 Link to this post

    How would you like for us to provide feedback / issues?  Via bug reports or through the forum?

  3. DevCraft Release
  4. Jack
    Jack avatar
    45 posts
    Member since:
    Feb 2009

    Posted 29 May 2009 Link to this post

    1) Also a Schedule Beta forum was mentioned but I cannot seem to find one.  Is this the forum or will a RadSchedule forum be added to the list.

    2) Will the Scheduler be released as SL3 or SL2 and then re-released as SL3?  I saw a blog touting Julyish as SL3 Release timeframe and was just curious if I'll have a SL2 production ready Scheduler or if I'll have to upgrade everything to SL3?

    Thanks

    jack 

  5. Ryan
    Ryan avatar
    1 posts
    Member since:
    Jun 2008

    Posted 29 May 2009 Link to this post

    A few notes for things I would like:

    1) Extreme granular control over appointments.  Down to the second.  Think of it as an overly anal task scheduler.
    2) An extensible/pluggable recurrence engine, and the ability to override the recurrence UI.
    3) The ability to override the default appt edit UI, and extend the backing appt classes to add additional properties.
    4) The ability, without hardship or extensive code, to interpret the data model in an application separate from Silverlight.  I.E. WPF.

    Thanks!

    Ryan

  6. Rosi
    Admin
    Rosi avatar
    2481 posts
    Member since:
    Sep 2012

    Posted 30 May 2009 Link to this post

    Hi All,

    Thank you  for your interest in Telerik Scheduler for Silverlight.

    You can share your thoughts, bug reports and suggestions here.

    Jack, RadScheduler for Silverlight is compatible with SL 2. As the rest of our controls from the Silverlight suite the Scheduler control will be shipped  also with a version against SL3.

    Ryan, thank you for your ideas. We will consider them.

    Actually you can extend the appointment class and customize the appearance of the appointments and edit dialogs with the current version of Scheduler control. The attached application illustrates how to do that. I suggest you download it  and review it.

    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.

  7. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 30 May 2009 Link to this post

    I am using the beta version with a test application in SL3.  I'll hold off on the issues I have found until you have a version specific for SL3.

    However, I agree with a previous post that I would like to have even more control over the dialog boxes that are presented when a new appointment is added or changed.  In fact, all I would really like it to get an event indicating that the user has requested and ADD or EDIT.  I'll take care of presenting my own dialog box (or whatever mechanisim is appropriate for my application given the current context). 

    Here is my specific recommendation:

    1. User double-clicks to ADD a new appointment.
    2. RadScheduler object generates an AddAppointment event, passing the date and the start time of the 'slot' selected.
    3. I trap the event, and display my own dialog box (or whatever is appropriate).
    4. When the user 'saves' the appointment, I add it to the ObservableCollection, causing RadScheduler to update the UI.

    1. User double-clicks to EDIT/EDLETE an existing appointment.
    2. RadScheduler object generates an EditAppointment event, passing the ObservableCollection object of the appointment.
    3. I trap the event, and display my own dialog box (or whatever is appropriate).
    4. When the user 'saves' the appointment, I modify the ObservableCollection object, causing RadScheduler to update the UI.

    Another recommendation.  I can highlight multiple 'slots' in RadScheduler (i.e., 10:00-12:30).   But when I double-click to add a new appointment, it goes back to highlighting a single slot (10:00-10:30), then calls the ADD dialog box.  I want the user to be able to swipe a block of time, then ADD the appointment so that they have the appropriate start/end times already set in the dialog box. 

    And lastly, is there a way to have the appointment slot be on 15-minute boundaries rather than 30-minute boundaries?

    Great work guys!  I'm looking forward to using RadScheduler in my production application.

  8. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 30 May 2009 Link to this post

    Horizontal scrollbar support for RadScheduler?  I'm placing the RadScheduler in a canvas, and setting the Height of the scheduler when the canvas size changes.  This gives me the scheduler vertical scrollbar just fine (shen required).  Does the scheduler have a horizontal scrollbar?  Ideally, I'd like to set a minimum width for the scheduler, then have the scheduler display a horizontal scrollbar when the container's size drops below that minimum.  Since I'm using the scheduler's builtin verticall scrollbar (so that the header stays visible), I'd also like to use a scheduler native horizontal scrollbar as opposed to a Silverlight ScrollViewer.

  9. Paige Cook
    Paige Cook avatar
    57 posts
    Member since:
    Sep 2007

    Posted 01 Jun 2009 Link to this post

    Would like to see Timeline View support. Also, the target zone for dragging to resize the appointment is pretty sensitive, anyway to improve that funtionality.

  10. Dédé
    Dédé avatar
    59 posts
    Member since:
    May 2009

    Posted 01 Jun 2009 Link to this post

    Scheduler for SL seems interesting... How about making dialogs modal for component (or maybe modal for web page ?)

    I hope it will have at least same level of customisation as the RadScheduler for asp.net ajax...

  11. Rosi
    Admin
    Rosi avatar
    2481 posts
    Member since:
    Sep 2012

    Posted 02 Jun 2009 Link to this post

    Hello All,

    @GEB, RadScheduler supports the following events:
               
    AppointmentAdding
    - Occurs when the new appointment is going to be added to the data source.
               
    AppointmentAdded
    - Occurs when the new appointment has been added to the data source.
              
     AppointmentCreating  Occurs when appointment is going to be created. You can use this event create your own  custom appointment. Also you can cancel the appointment creation.
              
     AppointmentCreated - Occurs when the new appointment was created and edit dialog window is about to be shown.
              
     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.
               
    AppointmentDeleting
    - Occurs when the appointment is going to be removed from the data source.Also you can cancel the appointment deleting.
               
    AppointmentDeleted - Occurs when the appointment has been removed from the data source.
              
     AppointmentSaving - Occurs before the appointment is saved.Also you can cancel the appointment saving.
    Also you can make the appontment slot to be 15 minutes instead of 30 by customizing the view definition. How this can be done you can read here.

    As for the scrollbar - we will do our best to make horizontal scrollbar working for the official release.

    @Paige Cook,  Timeline View support will be included in Q3 2009. Meanwhile you can customize the day or week views and change the number of displayed days by using the VisibleDays property.

    For example:
    scheduler.WeekViewDefinition.VisibleDays = 5;

    @Damien, Thank you for your suggestion. We will do our best to include it for the official release.
    For the time being RadScheduler supports customizing of appointments, edit dialogs and view definitions.

    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.

  12. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 02 Jun 2009 Link to this post

    This is very helpful information.  I have a follow up question:

    I want to display my own modal dialog box for adding a new appointment.  Is this the correct sequence?

    1. Trap the AppointmentCreating event.
    2. Display my custom dialog box in the event handler for AppointmentCreating.
    3. After the user completes the dialog box, add the appointment to the collection of appointments
    4. Set e.Handled = true

    Is there anyting else that needs to be done?


  13. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 02 Jun 2009 Link to this post

    The appointment subject is truncated in some cases on the DAY display when a custom template is used for appoinments (this is with the example you have provided).  When I take out the custom template, the subject seems to be shown appropriately in all cases.  I am testing using SL3, and do not have a way to determine if this is happening in SL2.  The subject is only being truncated on the display.  It is being stored appropriately in the appointment collection.

  14. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 02 Jun 2009 Link to this post

    Observations regarding the events being generated by the Scheduler.  Firstly, I can only put up my own dialog box if I trap the AppointmentCreating event, and mark Handled as TRUE and Cancel as TRUE.  It seems odd that I would have to mark Cancel as TRUE.  Secondly, in the AppointmentCreating event, you cannot get the START and STOP time that was selected on the schedule.  In contrast, you can get the START and STOP time in the AppointmentCreated event, but it seems impossible to put up a custom dialog box in that event handler, and signal that the default dialog box should not be used.

    Here would be my preference:

    1. Leave the AppointmentCreating event as it is today. 
    2. In the AppointmentCreated event, if e.Handled is set to TRUE, then RadScheduler would not put up its own dialog box, and simply use the appointment as it was defined in the AppointmentCreated event handler.
    3. Add a e.Cancel property to the AppointmentCreated event.  If set to TRUE, then the appointment would be cancelled and removed from the collection.

  15. Prashant
    Prashant avatar
    5 posts
    Member since:
    May 2009

    Posted 02 Jun 2009 Link to this post

    Hi,

    I have downloaded the ScheduledBetaApplication.zip (sample application to demonstrate Scheduler available in

    http://www.telerik.com/community/forums/silverlight/general-discussions/radscheduler-for-silverilght-beta.aspx ) and its building successfully on my machine (installed with softwares: a) Visual studio 2008 service pack 1, b) Silver light tools for visual studio 2008 SP1, c) Silver light 3.0 runtime (Note 3.0 beta version), d) Silver light toolkit) but while running on the same machine its giving me the following error:
    System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242' or one of its dependencies. The system cannot find the file specified.
    File name: 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242'
       at Telerik.Windows.Controls.Scheduler.AppointmentCollectionView..ctor()
       at Telerik.Windows.Controls.RadScheduler..ctor() [Line: 0 Position: 0]
       --- Inner Exception ---
    Could not load file or assembly 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242' or one of its dependencies. The system cannot find the file specified.

     

    Also I have downloaded the msi for the trial version of Telerik controls for Silver Light 3.0 namely "RadControls_for_Silverlight_2009_1_0526_TRIAL"  but there is no Telerik.Windows.Controls.Scheduler.dll present C:\Program Files\Telerik\RadControls for Silverlight Q1 2009\Binaries\Silverlight after installing RadControls_for_Silverlight_2009_1_0526_TRIAL.msi. Also its giving me the above same error while dragging / adding the telerik controls for silver light available with "RadControls_for_Silverlight_2009_1_0526_TRIAL" in our existing Silver Light 3.0 application.

     

     

    PLEASE LET ME KNOW RAD SCHEDULER CONTROL IS AVAILABLE FOR SILVER LIGHT 3.0 OR NOT?? IF YES THEN FROM WHERE WE CAN DOWNLOAD THIS AND HOW WE CAN USE THIS IN OUR SILVER LIGHT 3.0 APPLICATION

    Thanks in advance
    Prashant Gupta

  16. Rosi
    Admin
    Rosi avatar
    2481 posts
    Member since:
    Sep 2012

    Posted 03 Jun 2009 Link to this post

    Hello Prashant,

    @GEB, Thank you for noticing the text clipping problem. This will be fixed in the next upload of the application. Meanwhile you can solve the problem by replacing the custom DataTemplate with a key "AppointmentTemplate" with the following one:

    <DataTemplate x:Key="AppointmentTemplate"
                    <Border     Background="{Binding Path=Occurrence.Appointment.MeetingRoom,  
                                Converter={StaticResource RoomToBackgroundConverter}}"    
                    BorderBrush="Gray"  
                    BorderThickness="1" 
                    CornerRadius="8" Margin="-2"  
                    ToolTipService.ToolTip="{Binding              Path=Occurrence.Appointment.MeetingRoom,  
                                Converter={StaticResource TooltipContentConverter}}"  > 
                         <TextBox x:Name="PART_SubjectTextBox" Margin="7 0 30 0" 
                        VerticalAlignment="Top"  HorizontalAlignment="Stretch" 
                        Text="{Binding Path=Occurrence.Appointment.Subject}"       IsHitTestVisible="False" 
                        Foreground="Black" TextWrapping="Wrap" Style="{StaticResource  AppointmentSubjectTextBox}"  /> 
                        </Border> 
    </DataTemplate> 

    Also you can get the selected time slot in AppointmentCreatingEvent by the following way:
     private void scheduler_AppointmentCreating(object sender, AppointmentCreatingEventArgs e) 
            { 
                TimeSlot slot = (e.Source as RadScheduler).SelectedTimeSlot; 
                var start = slot.Start; 
                var end = slot.End; 
            } 

    Note, that detting e.Cancel = true is needed to cancel the displaying of the edit dialog. We will think about how we can improve this functionality.

    @Prashant , the application is supported by Silverlight 2. Here you  can find RadScheduler's dll -s built against Silverlight 3 that you can use. Note that this is beta and is very likely to have problems. Currently, there are a few known issues with Firefox. We are glad that you have interest in RadScheduler and any feedback would be greatly appreciated.

    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.

  17. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 03 Jun 2009 Link to this post

    Thank you for the fast turnaround on your response.

    I am now using the SL3 builds from your last post.  So far, under a SL3 development environment, your SL2 and SL3 builds seem to both work just fine.

    Regarding the HorizontalAlignment="stretch", it works fine and does not clip the text any more.  However, I am no longer able to double-click on an existing appoinment in order to edit the appointment.  To compensate, I increased the left margin of the text, so now the user must double-click to the left of the appointment text in order for the EDIT events to be generated.  The user is no longer able to click to the right of the text to generate EDIT events because of the STRETCH.

    New issue found: If I double-click on an existing appointment's text in order to edit the text in place, about 1 out of every 6 times, it generates an AppointmentCreating event instead of editing the existing appoinment's text.  I'm using IE8 / SL3 / VS2008 SP1.

    Question: Is there a way to have the code-behind automatically scroll the schedule (in Day-view) so that a specific hour can be the top line?  For example, when the scheduler object is first displayed, 12-midnight is always the first time-slot displayed.  I want to be able to position the schedule automatically such that 8:00 AM is the first time-slot displayed.

    Question: Is there a way to change the format of the time display down the left column of the scheduler in Day-view?  I want it to display Midnight, 1:00 AM, 1:30 AM .... Noon, 12:30 PM ... 5:00 PM, 5:30 PM, etc.

  18. Rosi
    Admin
    Rosi avatar
    2481 posts
    Member since:
    Sep 2012

    Posted 03 Jun 2009 Link to this post

    Hello GEB,

    Thank you for the reported issues.

    We will investigate them and do our best to fix them for the official version of the control.

    As for customizing the day view time ruler - you can specify the DayStartTime property  of the Day View definition.

    For example:

     scheduler.DayViewDefinition.DayStartTime = new TimeSpan(9, 0, 0); 

    Regarding the formatting the way how the hours are displayed-  we will think for way to implement  this feature for the official release.

    Your Telerik points have been updated for your involvement. Thank you again.

    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.

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

    Posted 03 Jun 2009 Link to this post

    Thanks for your quick reply

    Actually we have already started bulding health care application with Silver Ligh 3.0 and we are interested in using RAD controls for Silver light 3.0 so please provide me an estimate i.e. when Telerik is planning to release Bug free RAD controls (especially RAD Scheduler) for silver light 3.0 and what are the controls involved in that release.

  20. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 03 Jun 2009 Link to this post

    I tried setting the DayStartTime property.  However, the behavior is not exactly what I was looking for.  When set to "9:0:0", it did show 9:00 AM as the starting time in the Day View.  However, I could no longer scroll the day view so that I could see hours earlier in the day than 9:00 AM.  Is there a way to have the day still start at midnight, but have a specific hour scrolled as the first hour in the day view?  The user could then scroll to earlier hours if they desired.  This is a standard feature of Outlook, which is a pattern that my users are accustom to.

  21. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 04 Jun 2009 Link to this post

    How does a user schedule two appointments for the same time in Day View?  Let's assume that an appointment already exists for 1:00 PM - 2:00 PM.  The user wants to schedule another appointment for that same time slot.  The only way that I can see to do this is to double-click on a different empty time-slot, then change the starting and ending times in the dialog box.  That doesn't sound like a good pattern.  In other systems I have seen, the user can double-click in the left margin (where the times are displayed), which always assumes that a new appointment is desired for that time-slot.  Would it be possible for RadScheduler to detect a double-click in that object, and the send the AppointmentCreating event?

  22. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 04 Jun 2009 Link to this post

    I want to change the background and foreground colors of the Day View..  Specifically, I want to change the BLACK background to another color, and I want to change the foreground color of the time designations to another color.  Should this be done by creating a new style for the scheduler? 

  23. Rosi
    Admin
    Rosi avatar
    2481 posts
    Member since:
    Sep 2012

    Posted 04 Jun 2009 Link to this post

    Hello ,

    @Prashant, you can log in to your account and download here the latest internal build against Silverlight 3.This build is stable but does not contain RadScheduler control. To use all of RadControls for Silverlight built against Silverlight 3 I suggest you wait to our official  Q2 2009 build which will be released in the beginning of next month.

    @GEB,
    Is there a way to have the day still start at midnight, but have a specific hour scrolled as the first hour in the day view?


    RadScheduler does not support this feature for the time being. This is one of our tasks planned for the official release.

    How does a user schedule two appointments for the same time in Day View?


    After an appointment is created in a day view, you can click at  the right bottom or at the right upper corners in the timeslot to create a new appointment. However we agree that this behavior  can be improved and we will do it for the official version of the control.

    I want to change the background and foreground colors of the Day View..  Specifically, I want to change the BLACK background to another color, and I want to change the foreground color of the time designations to another color.  Should this be done by creating a new style for the scheduler?

    You need to implement a custom theme to complete this task. For the official release we will provide two color variations of Office Black theme:

    Office Blue -  the black color will be changed by blue colors.

    Office Silver-  the black color will be changed by gray colors.

    Kind 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.

  24. Prashant
    Prashant avatar
    5 posts
    Member since:
    May 2009

    Posted 04 Jun 2009 Link to this post

    Hi,

    We also need to make the appointment slot to be 10 minutes instead of 30 by customizing the view definition in RAD Scheduler and as per the solution mentioned by you we are also implemeting the following code but in the output, RAD Scheduler is still showing 30 mins appointment slot.
    Main.xaml

    <

    UserControl x:Class="SilverlightApplication2.MainPage"

     

     

    xmlns:telerikcontrols="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

     

     

    xmlns:telerikinput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"

     

     

    xmlns:teleriknavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"

     

     

    xmlns:telerikscheduler="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler"

     

     

    xmlns:telerikdata="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Data"

     

     

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

     

     

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

     

     

    Width="400" Height="300">

     

     

    <Grid x:Name="LayoutRoot" Background="White">

     

     

    <telerikscheduler:RadScheduler ViewMode="Day">

     

     

    </telerikscheduler:RadScheduler>

     

     

    </Grid>

     

    </

    UserControl>

    Main.xaml.cs

     

    using

    Telerik.Windows.Controls;

     

     

     

     

    namespace

    SilverlightApplication2

     

    {

     

        public partial class MainPage : UserControl

     

        {

     

            public MainPage()

     

            {

                InitializeComponent();

     

                this.Loaded += new RoutedEventHandler(Page_Loaded);

     

             }

     

            public void Page_Loaded(object sender, RoutedEventArgs e)

     

            {

     

     

                RadScheduler sched = new RadScheduler();

     

     

                System.TimeSpan ts = new TimeSpan(0,10,0);
                sched.DayViewDefinition.VisibleDays = 1;
                sched.DayViewDefinition.TimeSlotLength = ts;
            }
        }
    }

    PLEASE TELL ME WHERE I AM MISSING AND IF POSSIBLE PLEASE SEND ME SAMPLE CODE TO CHANGE THE RAD SCHEDULER TIME SLOT

     

     

                    

  25. Rosi
    Admin
    Rosi avatar
    2481 posts
    Member since:
    Sep 2012

    Posted 05 Jun 2009 Link to this post

    Hello Prashant,

    In this case I suggest you customize the view definition through XAML code.

    <telerik:RadScheduler x:Name="scheduler" Grid.Column="0"  ViewMode="Day"   Width="1100"
                <telerik:RadScheduler.DayViewDefinition> 
                    <telerik:DayViewDefinition VisibleDays="1" TimeSlotLength="0:10:0" /> 
                </telerik:RadScheduler.DayViewDefinition> 
    </telerik:RadScheduler> 

    You can see the attached application for more details. We will investigate why this feature does not work when the day definition is the default view and its timeslotlenght property is changed from a code-behind.

    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.

  26. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 05 Jun 2009 Link to this post

    Prashant,

    I'm not sure why your are allocating a "new" RadScheduler" object in your code-behind.  You should give the RadScheduler a name in your XAML, then use that object in your code-behind in order to set it's properties.  By allocating a new RadScheduler in the code-behind, I don't believe that you are actually manipulating the scheduler that is shown to the user via the XAML.

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

    Posted 05 Jun 2009 Link to this post

    I've integrated the RadScheduler into an existing Silverlight 2 application. Everything worked fine at first sight. The data is loaded through a webservice call. The webservice returns a collection of custom appointments. Once the data is received (async of course) I add each of the appointments to the Appointments collection of my instance of the RadScheduler. This works fine in most cases. However if (before the Scheduler.Appointments collection is filled with the data from the webservice) I set the Scheduler.ViewMode = SchedulerViewMode.Week, I get the following error: "TextBlock. Text does not support Binding as content" and my application crashes. When I remove the line of code where I set the Viewmode, everything seems to work fine in the beginning, but after a while (I did not yet find a pattern of any kind), the same error appears.


    I'm currently still trying to simulate the same problem in your demo application, however unit now I did not yet manage to do this. 

    When googling for this error I found only one result,  a link to another forum on your website (it might not have anything to do with one another, but you never now ;-)): http://www.telerik.com/community/forums/silverlight/chart/problem-using-radcontrols-for-silverlight-2009-1-0413-trial.aspx


  28. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 06 Jun 2009 Link to this post

    Unable to set the appointment text in the calendar to read-only.

    I'd like to set the text that is displayed in the calendar for any given appointment to read-only.  I have tried setting the IsReadOnly property in the DataTemplate for the appointment, but it seems to be getting ignored.  Is there any way for this text to be read-only?

  29. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 06 Jun 2009 Link to this post

    Unable to expand Tooltip and Convert "occurence" data.

    I'm using your example RadScheduler application, and attempting to expand the specification of the tooltip associated with an appointment.  If I break the ToolTipService out, the Converter is no longer called.  Here is the expanded code:

    <DataTemplate x:Key="AppointmentTemplate">  
        <Border Background="{Binding Path=Occurrence.Appointment.Color}"   
                BorderBrush="Gray" BorderThickness="1" CornerRadius="4" Margin="-2">  
            <TextBox x:Name="PART_SubjectTextBox" Margin="20,0,0,0" IsReadOnly="True" 
                 VerticalAlignment="Top" HorizontalAlignment="Stretch" 
                 Text="{Binding Path=Occurrence.Appointment.Subject}" IsHitTestVisible="False" 
                 Foreground="Black" TextWrapping="Wrap"   
                 Style="{StaticResource AppointmentSubjectTextBox}" /> 
            <ToolTipService.ToolTip> 
                <ToolTip VerticalOffset="10" HorizontalOffset="10">  
                    <ToolTip.Content> 
                        <Grid Width="70">  
                            <TextBlock Text="{Binding Path=Occurrence.Appointment.MeetingRoom, Converter={StaticResource TooltipContentConverter}}" /> 
                        </Grid> 
                    </ToolTip.Content> 
                    <ToolTip.Background> 
                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">  
                            <GradientStop Color="White" Offset="0" /> 
                            <GradientStop Color="LightBlue" Offset="0.8" /> 
                        </LinearGradientBrush> 
                    </ToolTip.Background> 
                </ToolTip> 
            </ToolTipService.ToolTip> 
        </Border> 
    </DataTemplate> 
     

    If I set a breakpoint in the Converter, it never gets called, and the tooltip shows no content.  The reason that I'm breaking the ToolTipService out is so that I can expand the contents of the ToolTip at a future time.

  30. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 07 Jun 2009 Link to this post

    Chaniging TimeSlotLength in code-behind successfully changes the value, but does not change the appearance of the scheduler on the screen.

    I have a menu option that allows the user to change the TimeSlotLength of the scheduler at any time.  When the menu option is selected, I am calling the following line of code:

    this.scheduler.DayViewDefinition.TimeSlotLength = new TimeSpan(0, newTimeScale, 0);  
     

    where newTimeScale is either 10, 15, 30 or 60.

    I can see that this.scheduler.DayViewDefinition.TimeSlotLength is being changed appropriately, but the scheduler appearance does not change on the screen.  Is there something else I need to do to get the appearance to change, or is this a defect in the scheduler?

  31. Rosi
    Admin
    Rosi avatar
    2481 posts
    Member since:
    Sep 2012

    Posted 08 Jun 2009 Link to this post

    Hello GEB,

    Thomas, thank you  for writing to us. The problem does not appear at our side, but we will continue to investigate it. Thank you.

    GEB,

    Unable to set the appointment text in the calendar to read-only


    We will try to implement this feature for the upcoming release due at the end of June/beginning of July.

    Unable to expand Tooltip and Convert "occurence" data.

    The DataContext of the owning FrameworkElement (Appointment Item) of the tooltip is not inherited by the visual tree assigned to the ToolTipService. This is the reason for the described problem.
    How you can  workaround it you can read in the following forum threads:
    http://www.codeproject.com/Articles/36078/Silverlight-2-0-How-to-use-a-DataBinding-with-the-ToolTipService.aspx?display=PrintAll

    http://silverlight.net/forums/t/52936.aspx

    http://silverlight.net/forums/p/14241/75875.aspx#75875

    Chaniging TimeSlotLength in code-behind successfully changes the value, but does not change the appearance of the scheduler on the screen.

    As I mentioned in my previos post -
    In this case you can customize the view definition through XAML code.

    <telerik:RadScheduler x:Name="scheduler" Grid.Column="0"  ViewMode="Day"   Width="1100"
                <telerik:RadScheduler.DayViewDefinition> 
                    <telerik:DayViewDefinition VisibleDays="1" TimeSlotLength="0:10:0" /> 
                </telerik:RadScheduler.DayViewDefinition> 
    </telerik:RadScheduler> 

     We will investigate why this feature does not work when the day definition is the default view and its timeslotlenght property is changed from a code-behind.

    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.

Back to Top
DevCraft Release