RowResize

Enables user to change row height by dragging the bottom row border. After a resize operation, the rowHeight field of the record is updated (when applyToAllRows is false) and the eventLayout of the dragged resource row will be switched to pack as a result (only applies when stack is used by default). barMargin and resourceMargin will also be shrunk as you reduce the height of a row.

Try hovering the bottom row border in the scheduler below and use drag-drop to change the row height.

Row resize
//<code-header>
fiddle.title = 'Row resize';
//</code-header>
const scheduler = new Scheduler({
    appendTo : targetElement,

    // makes scheduler as high as it needs to be to fit rows
    autoHeight : true,

    startDate : new Date(2023, 4, 7),
    endDate   : new Date(2023, 4, 14),

    eventStyle : 'border',

    features : {
        rowResize : true
    },

    columns : [
        { field : 'name', text : 'Name', width : 100 }
    ],

    resources : [
        { id : 1, name : 'Bernard' },
        { id : 2, name : 'Bianca' },
        { id : 3, name : 'John' },
        { id : 4, name : 'Rob' }
    ],

    events : [
        { id : 1, resourceId : 1, name : 'Event', startDate : '2023-05-08', endDate : '2023-05-10' },
        { id : 2, resourceId : 2, name : 'Meeting', startDate : '2023-05-12', endDate : '2023-05-13' },
        { id : 3, resourceId : 2, name : 'Booking', startDate : '2023-05-09', endDate : '2023-05-11', eventColor : 'blue' },
        { id : 4, resourceId : 3, name : 'Overlapping', startDate : '2023-05-08', endDate : '2023-05-10' },
        { id : 5, resourceId : 3, name : 'Overlapping', startDate : '2023-05-09', endDate : '2023-05-11' }
    ]
});

This feature is disabled by default. For info on enabling it, see GridFeatures.

Configs

13

Common

disabledInstancePlugin
listenersEvents

Misc

clientInstancePlugin
localeClassLocalizable
localizableLocalizable

Other

cellSelectorRowResize
maxHeightRowResize
minHeightRowResize

Properties

18

Common

disabledInstancePlugin

Class hierarchy

isRowResize: Boolean= truereadonly
Identifies an object as an instance of RowResize class, or subclass thereof.
isRowResize: Boolean= truereadonlystatic
Identifies an object as an instance of RowResize class, or subclass thereof.
isEventsEvents
isInstancePluginInstancePlugin
isLocalizableLocalizable

Lifecycle

configBase

Misc

clientInstancePlugin
localeHelperLocalizable
localeManagerLocalizable

Other

maxHeightRowResize
minHeightRowResize

Functions

28

Configuration

applyDefaultsstaticBase

Events

Lifecycle

destroystaticBase

Misc

doDisableInstancePlugin
initClassstaticBase
isOfTypeNamestaticBase
mixinstaticBase
optionalLstaticLocalizable

Other

LstaticLocalizable
onEvents
relayAllEvents
triggerEvents
unEvents

Events

5
catchAllEvents
destroyEvents
disableInstancePlugin
enableInstancePlugin

Event handlers

5
onDestroyEvents
onDisableInstancePlugin
onEnableInstancePlugin

Typedefs

1