-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Allow user to manually resize grid (presumably via a drag handle) #1271
Comments
Is this a duplicate of #550? Could you look at the suggestions in there and related issues, and whether they address your concerns? |
There have been discussions about whether there is more that can be done to make the grid resizable in 3.0. There are some things that aren't possible without an unreasonable load in terms of watches, but some things have been discussed as being potentially possible:
Leaving this open as a placeholder for that feature request and to cpature ideas on how it might be done. |
@PaulL1 #1 is done with 0885d8d. The grid now auto-resizes to fit ~10 rows if its initial height is less than 1 row according to the default #2 is done for page resizes, but can only handle width. Height changes are done according to the content so I don't know if it's possible to auto-resize vertically as the grid IS the content. |
OK, excellent. Is there any other resizing that you think we could/should do, in terms of when a user resizes a page? I'm thinking here some elements of responsive design - so if an iPad user rotates their iPad for example. (And note that I have no idea if this works already, I haven't tried). If we've done what we should then this could be closed. |
Is there possible to have an event called when a resize is applied , to be able to target the column and save the new column width ?? |
I'm wondering whether a useful feature would be a "view state save", which would give you sorts, filters, visible columns, column widths, column orders (if and when they become changeable), and maybe currently selected row/column. You'd need to use some of the other features in combination, in particular cellNav, but I can see it being the kind of thing people might want. I think this would be more useful than lots of events that let you keep track yourself - instead an export that would pull "current state" when someone tries to nav away from the page. Would that address what you're looking for, or were you particularly looking for a column resize for some reason? |
@romcode this issue is for resizing the entire grid. You can open a new issue for a feature request to fire an event when columns are resized. |
OK, I've verified that we resize on iPad rotation, which was one that was worrying me most. I'll raise a separate feature request for saving and reapplying grid state, as I think that'd be useful. But there's a bit of code in it, so it's probably not going to happen fast. |
@novice3030 will write a tutorial |
I've changed the title to make the actual request clear. |
Perhaps this would tie into #3031 |
Thank you for this information. I am currently in the process of moving all feature requests and support requests out of the issue tracker in order to keep our bug backlog clear and manageable. You question has been move to the following link and will be addressed by a UI-Grid Dev member when possible. |
Is there an option to resize the grid?
If no, are you going to develop this functionality? It is very important to allow users to set the size of some elements in their page.
Thanks
The text was updated successfully, but these errors were encountered: