Does the jQuery Splitter support the drag event?

0 Answers 16 Views
Splitter
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Bob asked on 09 Jun 2025, 05:50 PM | edited on 09 Jun 2025, 07:44 PM

I am trying to support a drag event with the jQuery Splitter that is the same as the Angular Splitter version of sizeChange that is demonstrated here:

https://www.telerik.com/kendo-angular-ui/components/layout/splitter/events

I have tried attaching events to kendoDraggable, binding to layoutChange, etc., but nothing works to capture the real-time drag event as the splitbar is moved.  Is there any known way to trap this event?

Thanks, Bob

Neli
Telerik team
commented on 12 Jun 2025, 08:31 AM

Hi Bob,

Below you will find an example on how you can access the Draggable component of the Splitbar and bind to its dragdragstart and dragend events. This will allow you to handle the drag events as the Splitbar is moved.

$(document).ready(function() {
    var splitter = $("#splitter").kendoSplitter().data("kendoSplitter");

    // Access the Draggable widget of the Splitbar
    splitter.resizing._resizable.draggable.bind("drag", function(e) {
        console.log("Drag");
    });

    splitter.resizing._resizable.draggable.bind("dragend", function(e) {
        console.log("Drag ended");
    });
});
Here is such Dojo example - https://dojo.telerik.com/qyCSnPKA.

 

Let me know in case you have additional questions.

Regards,

Neli

Bob
Top achievements
Rank 3
Iron
Iron
Veteran
commented on 12 Jun 2025, 01:28 PM

Perfect!  Thanks Neli!
Neli
Telerik team
commented on 17 Jun 2025, 06:53 AM

Hi Bob,

I am glad to hear that the provided suggestion was helpful.

I remain at your disposal should you have any questions.

Regards,

Neli

No answers yet. Maybe you can help?

Tags
Splitter
Asked by
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Share this question
or