jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • JRoseman
    Participant

    Hi Peter –

    I’m running into the same situation except I’ve got nested arrays within nested arrays within nested arrays, so while setting the root alleviates the problem at the first nested level I’m still facing problems at the next (2) deeper levels.

    Similar to the above example of ‘map: ‘Rotation>Shifts>0>BeginOffset’ I actually have an array of weeks under an array of projects under an array of studios for an employee:

    map: ‘Employee>Studio>0>Projects>0>Weeks’ or
    map: ‘Employee>Studio>0>Projects>0>Weeks>0’ (because Weeks is an array as well)

    Mapping root to ‘Employee>Studio’ is great for iterating over the Studios but I’d still need a way around using >0, >1, >2, etc for ‘Projects’ and ‘Weeks’. Not knowing how many Projects there might be per Studio, or Weeks per Project am I going to have to write a loop to iterate over the length of each array and dynamically build the ‘datafields’?


    JRoseman
    Participant

    I got it working in this fiddle – now I just need to figure out what’s wrong in my code!

    Thanks for the help!!


    JRoseman
    Participant

    Sorry, perhaps I’m missing something.

    Implementing .jqxDragDrop under the Grid’s rendered event seems to negate a selectionmode of multiplecellsadvanced. The mouse drag attempts to drag the cell you clicked on rather than allow you to highlight multiple cells (the functionality enabled by multiplecellsadvanced). Your demo shows a singlecell selectionmode. Could my issue be that I’m not setting the dropTarget to a second Grid but rather the same Grid? In other words I’m not moving cells from one Grid to another, I’m attempting to move cells within a Grid, hence my dropTarget is the same as my source Grid.

    I tried implementing a dragEnd listener without initiating .jqxDragDrop but I’m assuming this isn’t possible as it didn’t work.

    I’ll try setting up a Fiddle so I can share the full extent of my code.

Viewing 3 posts - 1 through 3 (of 3 total)