Posted 8 September 2017, 12:45 pm EST
I am developing a schedule grid using the farpoint spread sheet in X(dates) by Y(time of the day in 5 minutes solts) format. User can schedule items by dragging and dropping it to a different location. I have scheduled the items based on the location and on the grid and spanned the item depending on the item length. An item is identified by displaying the spanned cell in different color.
When a user drags and drops an item and a item already exits then that item should be replace by the item just dropped, whereever it may be.
Scenario and Issue:
There is an item already scheduled at cell location (5,5) and its length is say 6. So it will span in X direction till (5,10). Now if I drag another item from the grid which has same length 6 and If it exactly operlaps, the mouse pointer is appended by a rectangle, indicating that you can drop the item at that location. And everything works well.
Now when I move by cursor one pixel to right or left the rectangle turns into a black circle with a line across in it indicating that this item cannot be dropped at that location. This also happens when the length of items is different. Eg. When the length of the item on the grid is 10 and the length of the item being dropped is 5. The underlying item does not accepts the item being drop on itself. Can you please let me the solution for this?
Please note, I have a requirement that the user can schedule items anywhere in the grid and the I have written a custom logic to schedule items and span them.
Please let me know in case you need any further details.
Thanks & Regards,