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

Initial Column Order #2

Closed
rmf42 opened this issue Sep 28, 2011 · 2 comments
Closed

Initial Column Order #2

rmf42 opened this issue Sep 28, 2011 · 2 comments

Comments

@rmf42
Copy link

rmf42 commented Sep 28, 2011

Hi Matt,

Love the MooGrid... so fast and browser friendly.

Wondering how you could set the initial column order? I've played around a bit but can't seem to figure it out.

Something else that would be great would be an easy way to export to excel, copy and paste does not work :(

Thanks,
Robin

@mmurph211
Copy link
Owner

Hi Robin,

Thanks glad you like it!

If you look at this example JSON data set, https://github.com/mmurph211/Grid/blob/master/data_json_v2.txt, you'll see under the Head array at the top, the head's only row (also an array) has "First Name" in the 3rd position in the array, making it the 3rd column in the grid. Right now column spanning and row spanning is not supported.

Thanks those are great features that I am hoping to add soon. The copy/paste is currently broken because of the way the DOM in the grid is rendered. There are ways to override default selection behavior that I will need to add.

Matt

@rmf42
Copy link
Author

rmf42 commented Sep 29, 2011

Sorry, I didn't mean which order the columns appear in but rather, which column the data is sorted by... in the case of your example, how would you make the data ordered by Last Name on first load.

Thanks for the prompt reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants