I finally was able to get back to this task :
Thanks a lot for the pointer! it turns out I have already implemented
"revert" function, but completely forgot about it :(
now everything works as expected
On Fri, Jun 3, 2016 at 6:06 PM, Sebastien
After a quick test, 'revert' and 'accept' are enough (and convenient if you
have a css class for 'file'). But using 'scope' instead of 'accept' also
works, it's up to you...
I also confirm you that revert does not prevent #onDrop to be fired (even
used as a function)...
Thanks a lot!
I'll be on vacation next couple of week, will try to test on return :)
On Wed, Jun 1, 2016 at 3:05 AM, Sebastien wrote:
> Hi Maxim,
> It should be achievable, using revert and accept/scope
> By reading your post, I suddently have a doubt, revert is not supposed
It should be achievable, using revert and accept/scope
By reading your post, I suddently have a doubt, revert is not supposed to
cancel the drop action. The element just go back to its original place but
onDrop should still be fired. I have to double check tomorrow because
thanks for the reply :)
I'll try to describe my use case
I do have file free panel, file/folder items on this panel can be *moved*
to other folders (there are unmovable root folders and trash)
everything works as expected
now I need to add "display" panel
I would like "file"
Sorry for the late answer!
"Droppable#onDrop, where you can reject the Draggable item/component" was
IIRC it was supposed to mean "if the element is not reverted, then it is
accepted ; and if the element is reverted then it is rejected by design"
finally I found free time to continue this work :)
Actually my question was regarding "Droppable#onDrop, where you can reject
the Draggable item/component", how this can be achieved?
On Wed, May 4, 2016 at 1:28 AM, Sebastien wrote:
> Hi Maxim,
"revert" options can take a function as argument . maybe you can use it
and test for an additional css class?
I did a quick test and it works as expected:
public void onConfigure(JQueryBehavior behavior)
I actually need to make a poc before giving an answer. Will try to do it
Thanks & best regards,
On Wed, Apr 27, 2016 at 9:12 AM, Maxim Solodovnik
> Another question:
> Currently Draggable has "revert" option
> Is it possible to
Currently Draggable has "revert" option
Is it possible to check item being dropped inside Droppable::onDrop and
"reject" it, so it will revert?
It is not an option for me to setRevert(true), due to I need to perform
some checks depending on where the item was dropped :)
On Wed, Apr 27, 2016 at 6:38 AM, Maxim Solodovnik
> Hello Sebastien,
> It's about jqueryui draggable.
> According to my tests it only works on first element being selected by
> selector provided i.e. in case two elements on the page has class="drop
It's about jqueryui draggable.
According to my tests it only works on first element being selected by
selector provided i.e. in case two elements on the page has class="drop
target", only one will work as containment
setting containment to empty string helps, but
Is it about jQuery or Kendo draggable?
On Tue, Apr 26, 2016 at 7:06 PM, Maxim Solodovnik
> Hello Sebastien,
> I'm trying to use Draggable,
> everything works as expected as long as I'm using single selector for the
> "containment" (for ex:
Mail list logo