kendosplitter dragenter problem

1 Answer 17 Views
Drag and Drop Splitter
n/a
Top achievements
Rank 1
Iron
Iron
n/a asked on 02 Feb 2024, 11:52 AM | edited on 02 Feb 2024, 11:53 AM

Hi !

hello. Below is a simple test page.

https://dojo.telerik.com/eSAqaXuw/2

 

 

 

A counter for kendosplitter  resize event and a counter for splitbar's dragenter event.

It should be resize cnt = dragenter + 1.

But, the more you go on, the more you go on, the more time goes by.
The gap widens. The difference increases.

Is there any way to strengthen dragenter's recognition?
How can dragenter events always be recognized?
Why isn't the dragenter event recognized properly?
I am very worried about this issue.

Thank you for reading.


1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 07 Feb 2024, 08:03 AM

Hi,

As described in the API - the dragenter event is fired when draggable moves over the drop target. Thus, I would suggest try to create a Draggable from the splitbar and a DropTarget for the element from which the Splitter is initialized:

 
   $('#splitter').kendoDropTarget({
        'dragenter':function(e){
          dd.value = dd.value*1 + 1; 
        }
      }); 

      $('.k-splitbar').kendoDraggable({
        hint: function(element) {
          return element.clone();
        }
      });

Here you will find the modified example: https://dojo.telerik.com/@NeliKondova/OfOWuGay.

Regards,
Neli
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
n/a
Top achievements
Rank 1
Iron
Iron
commented on 07 Feb 2024, 01:58 PM

It's perfect! Thank you very much^^
Tags
Drag and Drop Splitter
Asked by
n/a
Top achievements
Rank 1
Iron
Iron
Answers by
Neli
Telerik team
Share this question
or