RadSchedule View Loaded event

4 posts, 0 answers
  1. Vikas
    Vikas avatar
    64 posts
    Member since:
    May 2014

    Posted 16 Jul 2015 Link to this post

    I am using RadTab Control and one of the tab item host a Rad Schedule view, I have a event handler for calendar loaded event.

    I want the event to be called only for the first time the tab is loaded, for that i have set IscontentPreserved = true for the tab control, but still the loaded event gets called every time.

    Vikas

     

  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 20 Jul 2015 Link to this post

    Hi Vikas,

    I tested your several variations of your scenario but I was not able to reproduce the described behavior. Can you please, send me a runnable code that demonstrates your implementation? Can you also tell me for the Loaded event of which calendar control you are subscribing and how you are doing it? This will help me in better understanding your case and assist you further.

    As a side note, our forums doesn't allow uploading of .zip files, so if you decide to send us a project you can do it in a new Support Ticket.

    Thank you for any help you can provide.

    Regards,
    Martin
    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Vikas
    Vikas avatar
    64 posts
    Member since:
    May 2014

    Posted 21 Jul 2015 in reply to Martin Link to this post

    Hi Martin,

    I am using Loaded event of RadScheduleView

    <scheduleView:RadScheduleView DataContext="{Binding PinnedRadScheduleDay}" NavigationHeaderVisibility="Collapsed" Width="15" AppointmentsSource="{Binding Appointments}"                                        
                        ResourceTypesSource="{Binding AllResourceTypes}" GroupDescriptionsSource="{Binding GroupDescriptions}"
                       PreviewMouseWheel="RadScheduleView_PreviewMouseWheel" Loaded="RadScheduleView_Loaded" ​

     

    and this is tabcontrol declaration:

    <telerik:RadTabControl x:Name="uxSchedulingTabControl" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" IsContentPreserved="True"

    I will open a ticket after creating a sample application.

    Vikas
  5. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 23 Jul 2015 Link to this post

    Hi Vikas,

    Thank you for the additional information. I tested your code snippets but the scheduleview's Loaded event is fired only the first time when its tab is selected. I will wait for the sample project that you mentioned and as soon you send it I will check it on my side, and investigate what is causing the described behavior.

    Regards,
    Martin
    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
Back to Top