How to dynamically change CursorOffset values

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

    Posted 19 May Link to this post

    Hello

    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
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 23 May 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.

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top