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

MultiDayView between DayView and the WeekView

3 Answers 13 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rudá Cunha
Top achievements
Rank 2
Rudá Cunha asked on 08 Nov 2010, 07:54 PM
I have to put the MultiDayView between DayView and WeekView.
For to make sense had to be between DayView WeekView and not the last.

3 Answers, 1 is accepted

Sort by
0
Accepted
Veronica
Telerik team
answered on 10 Nov 2010, 11:15 AM
Hi Rudá Cunha,

Yes, this is possible. Here's the code:

<script type="text/javascript">
        function pageLoad() {
            var $ = $telerik.$;
            $(".rsHeader ul li:contains(Multi-day)").insertBefore(".rsHeader ul li:contains(Week)");
            $(".rsHeader ul").css("text-align", "center");
        }
   </script>

Please let me know if this was helpful.

All the best,
Veronica Milcheva
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Rudá Cunha
Top achievements
Rank 2
answered on 10 Nov 2010, 02:12 PM
Perfect! Thanks.

Just did some modifications, as if translated, would not work.

function pageLoad() {
    var multiDay = $(".rsHeader ul li .rsHeaderMultiDay")[0];
    var week = $(".rsHeader ul li .rsHeaderWeek")[0];
 
    if ((multiDay) && (week)) {
        multiDay = multiDay.parentElement;
        week = week.parentElement;
 
        $(multiDay).insertBefore(week);
    }
}

0
Veronica
Telerik team
answered on 10 Nov 2010, 02:19 PM
Hello Rudá Cunha,

Yes, you are right that this won't work for localized strings. I'm glad you succeeded to reveal it!

Kind regards,
Veronica Milcheva
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
Rudá Cunha
Top achievements
Rank 2
Answers by
Veronica
Telerik team
Rudá Cunha
Top achievements
Rank 2
Share this question
or