This is a migrated thread and some comments may be shown as answers.

[Solved] Reorder week view and workweek view in rad scheduler

1 Answer 53 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dibyendu
Top achievements
Rank 1
Dibyendu asked on 07 Jul 2013, 09:25 PM
Hi,
I am using Telerik rad scheduler in my SharePoint 2010 dev project for a school district. Requirement was to build a school scheduler with day view, school week, work week, month and timeline view.

For work week I am using multiday view and all the things are working fine. But I stuck with one things:
My requirement is all the navigation tab should be in the following order: 1. Day view, 2. work week view, 3. week, 4. month and 5. timeline.

But in my case multiday view always coming at the end. I am not able to position it in no 2. Is there a way I can change this default ordering?

Thanks in advance,
Dibyendu

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 11 Jul 2013, 07:02 AM
Hello,

Indeed you can achieve such functionality using the following code snippet below:
//JavaScript
<script type="text/javascript">
        function pageLoad() {
            var $ = $telerik.$;
            var viewCollection = $(".rsHeader ul li");
            var multiDayView = $(viewCollection[4]);
            multiDayView.remove();
            var weekView = $(viewCollection[1]);
            weekView.before(multiDayView);
        }
    </script>


Regards,
Boyan Dimitrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Scheduler
Asked by
Dibyendu
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or