Author Topic: Grid with row limit, drag and drop?  (Read 3358 times)

superme2012

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Grid with row limit, drag and drop?
« on: November 21, 2014, 02:08:48 PM »
Can the grid allow drag and drop with rows greater than 0? Or should I build my own 2D array of objects (grid).

Just a check before incase it can, would like to use the system as is.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Grid with row limit, drag and drop?
« Reply #1 on: November 21, 2014, 09:06:34 PM »
If you need to put a limit on the number of items, you should do that in your custom DragDropItem-derived script. Any and all validation should go there.

superme2012

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Grid with row limit, drag and drop?
« Reply #2 on: November 22, 2014, 02:10:47 AM »
Thanks for the fast response, mook.

After some thinking without the influence of beer I realised there is a better way.
Just needed a grid and the drop container.