Show cool things you have done with our products


Post by wellrus »

Why I can drop items in the exact same position of scheduler from another scheduler? (allowOverlap : false)

Post by mats »

allowOverlap doesn't check on the 'data/store' level. You're responsible yourself for any logic you want to add, the component doesn't know that you're adding new records on the store directly (when the drop occurs)

Post by wellrus »

Is it bug?
Attachments
is it bug (question).png
is it bug (question).png (43.48 KiB) Viewed 6332 times
ok.png
ok.png (38.46 KiB) Viewed 6332 times

Post by mats »

No idea, did you try debug it in Firebug?

Post by wellrus »

Dropping occurs in the cell where the cursor is over. But the cell is marked not valid.

Post by mats »

try to debug, find where the CSS class marking it as invalid is applied. Time to dig into the source code :)

Post by wellrus »

I don't have readable Bryntum Scheduler source code.

The video clip shows an example (https://www.bryntum.com/examples/schedul ... gdrop.html).

Added display of selected cell.

externaldragdrop.css
			.sch-schedulerview td.sch-dd-cellover{
				background: red !important;
			}	

In this example, the class is only installed component.
Attachments
Movie.zip
(382.14 KiB) Downloaded 415 times

Post by mats »

You can't upload an EXE file and expect us to run it. Upload (or link to) a real movie file (WMV, AVI, MOV, etc..) and I'll take a look.

Post by wellrus »

Sorry. The first video was done by the program. Exe type of file is by default

https://www.fileserve.com/file/SqRqfTt/Movie.zip

Avi in zip archive.

Post by mats »

This cell-over highlighting is not really compatible with the current drag-drop implementation, the 'bug' happens because all events are rendered into the first cell of each row. Either remove the CSS class, or You could definitely try to override and solve this by doing something like
Sch.feature.DropZone.override({

    getTargetFromEvent: function(e) {
        return e.getTarget('.sch-timetd', 2);
    }
});

This should prevent highlighting of a cell when you're hovering over an event.

Post Reply