Completed
Last Updated: 15 Oct 2020 17:57 by ADMIN
Rohit
Created on: 31 Aug 2018 09:09
Category: Scheduler
Type: Feature Request
0
Improve scheduler property and allow to freeze randomly row
Please provide option in scheduler to freeze rows in randomly 
Attached Files:
1 comment
ADMIN
Peter Milchev
Posted on: 15 Oct 2020 17:57

Hello Rohit,

Due to the low demand for this feature and its specificity, we will close this Feature Request. 

For all people requesting a sticky row in Grouped TimelineView with Vertical direction, the following code can be used as a starting point.

<telerik:RadScheduler RenderMode="Lightweight" runat="server" ID="RadScheduler1" OnPreRender="RadScheduler1_PreRender"
    Height="600px" SelectedDate="2012-04-16" Font-Size="14px" AccessKey="F" TabIndex="1" SelectedView="TimelineView" GroupBy="User" GroupingDirection="Vertical" RowHeight="50px"
    DayStartTime="08:00:00" DayEndTime="23:00:00" OverflowBehavior="Auto">
    <AdvancedForm Modal="true" />
</telerik:RadScheduler>
<%-- https://css-tricks.com/position-sticky-and-table-headers/ --%>
<style>
    div.RadScheduler .rsContentTable {
        overflow: visible
    }

    .rsContentScrollArea table {
        position: relative;
    }

    .sticky td, .sticky th {
        position: sticky;
        opacity: 1;
        z-index: 100;
        background: #e6e6e6;
        top: 0; /* Don't forget this, required for the stickiness */
    }
</style>

<script>

    function pageLoadHandler() {
        // improve logic to set the class to the desired rows, not the first one
        $telerik.$(".RadScheduler .rsAllDayTable tr").eq(0).addClass("sticky");
        $telerik.$(".RadScheduler .rsVerticalHeaderTable tr").eq(0).addClass("sticky");
    }
    Sys.Application.add_load(pageLoadHandler);
</script>

Regards,
Peter Milchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.