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

Allow user to manually resize grid (presumably via a drag handle) #1271

Closed
mador-tech opened this issue Jun 26, 2014 · 12 comments
Closed

Allow user to manually resize grid (presumably via a drag handle) #1271

mador-tech opened this issue Jun 26, 2014 · 12 comments
Milestone

Comments

@mador-tech
Copy link

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

@PaulL1
Copy link
Contributor

PaulL1 commented Sep 7, 2014

Is this a duplicate of #550? Could you look at the suggestions in there and related issues, and whether they address your concerns?

@PaulL1 PaulL1 added this to the 3.0 milestone Sep 8, 2014
@PaulL1 PaulL1 changed the title Set resizable height grid Resizable grid Sep 8, 2014
@PaulL1
Copy link
Contributor

PaulL1 commented Sep 8, 2014

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:

  1. When height isn't specified, using a default height, or doing a one-time calculation of height based on the apparently available space
  2. Noticing at some level page resizes, and doing an "OK" job of resizing when they occur

Leaving this open as a placeholder for that feature request and to cpature ideas on how it might be done.

@c0bra
Copy link
Contributor

c0bra commented Sep 9, 2014

@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 rowHeight. The number of rows to resize to fit is configurable.

#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.

@PaulL1
Copy link
Contributor

PaulL1 commented Sep 9, 2014

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.

@PaulL1 PaulL1 self-assigned this Sep 22, 2014
@roedit
Copy link

roedit commented Sep 22, 2014

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 ??
Thanks.

@PaulL1
Copy link
Contributor

PaulL1 commented Sep 22, 2014

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?

@c0bra
Copy link
Contributor

c0bra commented Sep 22, 2014

@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.

@PaulL1
Copy link
Contributor

PaulL1 commented Sep 23, 2014

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.

@swalters
Copy link
Contributor

@novice3030 will write a tutorial

@PaulL1 PaulL1 removed their assignment Sep 24, 2014
@c0bra c0bra changed the title Resizable grid Allow user to manually resize grid (presumably via a drag handle) Oct 6, 2014
@c0bra
Copy link
Contributor

c0bra commented Oct 6, 2014

I've changed the title to make the actual request clear.

@PaulL1
Copy link
Contributor

PaulL1 commented Mar 28, 2015

Perhaps this would tie into #3031

@PaulL1 PaulL1 modified the milestones: Future, 3.0 Mar 28, 2015
@mportuga
Copy link
Member

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.

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

6 participants