wish-list of enhancements
Nice work! Impressive in terms of speed of development. In terms of where things will go here is a personal wish-list of some down-the-road "advanced" enhancements that I think would really make this standout.
-Group by with aggregates -Fixed columns for those wide grids -Column virtualization for wide grids -Cell navigation and cell selection -Editable fields or something along those lines -Dynamic individual row/cell styling based on data -Variable row heights
I imagine some of these would probably effect performance severely. Thanks for sharing the awesome work so far!
some things you talk about are already enables such as: variable row height (check the wiki for configuration options.) https://github.com/timothyswt/ng-grid/wiki/Configuration-Options
The grid headers, rows, and cells are completely templatable. We can publish some examples of templates so you can implement styling based on data, (we want to stay out of the business of styling the grid too heavily to allow people to style it themselves.) This goes for editable fields which can either be done via a cell/row template or a plugin.
Columns can be fixed and not resizable by specifying the option to allow re-size column by column or the entire grid. https://github.com/timothyswt/ng-grid/wiki/Configuration-Options
Group aggregates will be done via plugin or template.
We also want to implement column virtualization
Didn't mean to close the issue, I meant to just comment (sorry) . I reopened it.
Drop down menu on column-headers would be nice -
we are going to be implementing a context menu/dropdown as a plugin too ;)
Check out some examples we just put up
http://timothyswt.github.com/ng-grid/examples/
Cool. Just to clarify. In terms of fixed columns I meant scenarios where in very wide grid that requires horizontal scrolling, there could be a way to make the first column or first 3 columns or whatever "fixed" in that they are not effected by the scrolling. So in an spreadsheet like grid the column number or name would always remain in view even if the rest of the columns scrolled. The tricky part of that is it would require separate parent div and then the scrolling needs to get synced between the two. Also regarding the variable row height's I mean that the each individual row can have a different height, or maybe just limited to a small set of variable row heights. This is helpful if you have a few rows that contain a large amount of data whereas most other rows do not. You don't want to make all the rows taller just for those few rows. The issue here is for virtual scrolling. Since the viewport height is calculated based on the number of rows * row height, and here the calculation would need to be slightly more involved, but maybe not too bad if it's limited to only a few choices. Cell navigation- I meant that ability to use keyboard navigation not just on a row-by-row basis but a cell-by-cell basis if desired. Cell selection is similar but also could be done with the mouse. What that would do is add a css class and some api where the client could access the context/data from the currently selected cell from outside the grid. So for example if you have a cell which requires complex editing and validation, you could select that cell and click on a button somewhere which would allow you to edit that cell's bound data/context. Again, these are just things I have used and needed when working with all the different grids out there, so take it with a grain of salt. Again, thanks for sharing, it's really taking shape very fast.
Hide/show columns is now merged into main.
-Group by with aggregates - Done!
-Editable fields or something along those lines - Done by using cell templates -Dynamic individual row/cell styling based on data - cellFilter option and cellTemplates allow for this.
I am going to create 4 other Issues to separate these as I would like to support them but they will be tracked individually. -Fixed columns for those wide grids -Column virtualization for wide grids -Cell navigation and cell selection -Variable row heights
@timothyswt is there a sample plunkr/fiddle that shows how to do editable fields using cell templates?
"variable row height (check the wiki for configuration options.) https://github.com/timothyswt/ng-grid/wiki/Configuration-Options"
Which option are you pointing at ?
rowHeight: 30 -- This would make all the rows in the grid of the same height, but what if we needed say row 'X' to be of a certain height and the rest of them to be say 30 ..
Can anyone tell me if the context menu feature been implemented yet?
Yes it has. Its a dropdown on the top right of the grid. showColumnMenu = true in your grid options.
Nice feature, but not exactly what I was looking for.
In the end, I created a context-menu directive to show a menu when the user right-clicks a row (or cell). I apply it in the rowTemplate. However, the only place I could find to inject the markup for the menu was also the rowTemplate. If I want to render a different menu for each row (or cell) that’s appropriate enough. But when the menu is the same for all rows in the grid, it would be nice to be able to declare the menu once, and reuse it.
Is there a way of injecting markup elsewhere in the grid that would render only once, and that will be available for binding as the rows are being rendered?
From: jonricaurte [mailto:[email protected]] Sent: 02 July 2013 18:51 To: angular-ui/ng-grid Cc: Taylor, Paul Subject: Re: [ng-grid] wish-list of enhancements (#9)
Yes it has. Its a dropdown on the top right of the grid. showColumnMenu = true in your grid options.
— Reply to this email directly or view it on GitHubhttps://github.com/angular-ui/ng-grid/issues/9#issuecomment-20363054. This communication contains information that may be confidential, proprietary in nature, and may also be attorney-client privileged and/or work product privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) or the person responsible for delivering it to the intended recipient(s), please note that any form of dissemination, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by replying to this message and delete this e-mail immediately. Thank you for your cooperation.
Please be advised that neither HireRight, its affiliates, its employees or agents accept liability for any errors, omissions or damages caused by delays of receipt or by any virus infection in this message or its attachments, or which may otherwise arise as a result of this e-mail transmission.