How to dynamically change CursorOffset values

2 posts, 0 answers
  1. James
    James avatar
    12 posts
    Member since:
    Feb 2014

    Posted 19 May 2016 Link to this post


    We have a grid that we wish to drag row items from.The rows in the grid represent items that are rectangular shapes, so in the hint function we create an image of the shape. These shapes are then dragged from the grid onto a canvas where they will be placed. Our problem is that we would like to offset the cursor so that it is in the middle of the image rather than at the top left corner.; however we do not know the size of any of the images at the time of initialising grid to be draggable.

    So is there any way that we can change the cursorOffset option during the hint function?


  2. Alex Gyoshev
    Alex Gyoshev avatar
    2525 posts

    Posted 23 May 2016 Link to this post

    Hello James,

    The draggable demo shows how to update the cursorOffset dynamically. See this Dojo snippet for an example of using this in the hint function.

    Alex Gyoshev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top