Selected Resource swaps on Refresh

2 posts, 0 answers
  1. Denis Cilliers
    Denis Cilliers avatar
    62 posts
    Member since:
    Jan 2004

    Posted 05 Jul 2013 Link to this post

    Is there a way to select a resource and after refreshing the diary to jump back to the selected resource.

    Currently if you select a resource and only have that resource filling the diary screen, if you refresh the diary using 


    The selected resource is the first one in your resource list.

    How would I return to the original resource in the diary

    The scenario is as follows;
    We have 5 pc's at the client 4 salesmen and 1 admin.  
    Each pc sees the full diary with all 4 salesmen
    They might want to filter to see just their appointments by setting the resource per view to 1 
    This will show just one salesman on the diary
    When the diary is refreshed it defaults to the first salesman and on the original selected one
  2. Ivan Petrov
    Ivan Petrov avatar
    715 posts

    Posted 10 Jul 2013 Link to this post

    Hello Denis,

    Thank you for writing.

    You can save the current position of the horizontal scroll bar before you refresh the scheduler and after you call the Refresh method you can restore the position. Here is the code to achieve this:
    private void buttonRefreshScheduler_Click(object sender, EventArgs e)
        RadScrollBarElement scrollBarElement = this.radSchedulerDemo.SchedulerElement.ViewElement.Children[3] as RadScrollBarElement;
        int numberOfBackSteps = scrollBarElement.Maximum - scrollBarElement.Value - (this.radSchedulerDemo.SchedulerElement.View.ResourcesPerView - 1);
        for (int i = 0; i < numberOfBackSteps; i++)

    A thing that needs clarification here. Why we go to the last resource and move backwards? The usual approach would be to start from the first and move forward. However, there is an issue in the NavigateToNextResource method and to workaround it we use this approach. I have logged the issue with the method in our Public Issue Tracking System - PITS. You can track its progress, subscribe for status change alerts and add your vote/comment to it on the following link - PITS Issue.

    I have also updated your Telerik Points for bringing our attention to this issue,

    I hope this will be useful. Should you have further questions, I would be glad to help.

    Ivan Petrov
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top