Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializing Doby grid without columns #169

Open
ckosmowski opened this issue Dec 17, 2014 · 0 comments
Open

Initializing Doby grid without columns #169

ckosmowski opened this issue Dec 17, 2014 · 0 comments
Milestone

Comments

@ckosmowski
Copy link
Collaborator

First question for this issue is:

  • Is doby grid intended to be initialized without any columns at all? And then later be populated with columns programatically ?

1.) If not:

Doby grid could throw an error if initialized without columns.

2.) If yes:

There is a really weired problem connected to jQuery.ui.sortable. (Which is mentioned on many posts and issues throughout the internet).

If you have any sortable list with ui.sortable in a horizontal mode (like it applies to doby grids reorderable columns) and you initialize it with $('xy').sortable() before any elements exists in that list (which is the case if you initialize doby-grid without any columns), it seems like jQuery.sortable somehow considers the list to be vertical.

So if you try to reorder the columns you can move them left/right but nothing happens as long as you dont move your mouse up/down. If you move the mouse up/down the reordering will happen.

The current workaround for me is to add a dummy column to doby-grid when initializing it.

@EvHaus EvHaus added the bug label Dec 17, 2014
@EvHaus EvHaus added the ready label Jan 8, 2015
@EvHaus EvHaus added this to the v0.1.2 milestone Jan 9, 2015
@EvHaus EvHaus modified the milestones: v0.1.2, v0.2.0 Feb 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants