-
Notifications
You must be signed in to change notification settings - Fork 851
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
ng-table resizing feature #313
Comments
Yes - for example - allowing a user to resize the column width by clicking the column (like excel). Would be great for long data values. |
I agree. One of the more painful things we have noticed, is that columns sizes are autocomputed instead of user defined. Because of this when sorting we frequently see our column sizes jumping radically due to new data showing up the screen. That is a painful user experience. We love ng-table though, and think it is the best implementation of a grid/table in angularjs |
This column resizing feature is really a common feature that every third-party vendor provides for a Grid component. I have used many other third-party-components such as ComponentOne, JqGrid, Telerik Grid, KendoUI and etc; all of these components are supplied with this column resizing feature. I believe providing this feature will definitely make ng-table more competitive and superior than the other grids currently on the market. |
This would indeed be very useful. |
The best solution I've known about column resize. The author of above solution even wrote an article to explain the issues he encountered on each column resize plugin he tried to integrate. It might be helpful for you to implement your column resize issue. |
+1 This would be a great feature! |
I've found that there exists a module/plugin for ng-table to help with resizing columns: https://github.com/esvit/ng-table-resizable-columns This module gives you a custom class directive called https://github.com/esvit/ng-table/blob/master/examples/demo26.html I haven't had success getting this to work, though. I've made sure to include the .rc-handle-container
{
position: relative;
}
.rc-handle
{
position: absolute;
width: 7px;
cursor: ew-resize;
margin-left: -3px;
z-index: 2;
}
table.rc-table-resizing
{
cursor: ew-resize;
}
table.rc-table-resizing thead, table.rc-table-resizing thead > th, table.rc-table-resizing thead > th > a
{
cursor: ew-resize;
} I've verified also that the link function of the directive is being executed, but I don't get any resize functionality or changing of my mouse pointer. Hopefully someone else out there has more luck than I had and can share it with us! |
Hi all, Has any progress with this issue? Thanks. |
Working example. Here is a Plunk from the demo link provided above: http://plnkr.co/edit/u6JixH?p=preview. I adjusted it slightly to show borders and removed the left/right align of the headers. |
+1 cant be a "serious" contender unless you can specify column widths and allow the user to adjust |
Hey @leptronic nice job! |
@avboy72 You can set the width on the th/td tag if you want some default. |
Thanks, I will try that. On Fri, Aug 29, 2014 at 2:06 PM, Scott Lepper notifications@github.com
|
@dylamite @scottlepp This is a good solution, however it does add requirement for jQuery and filters are not working (The header row to do filtering is not added properly). I made it work by manually creating the filters like the following row in .
|
Working plunker: http://plnkr.co/edit/syWBUA7KUIhIckV0VnW3?p=preview |
@pelizza tried using it the same way in plunker but getting the following error Can anyone help me out of this added the ng-table and ng-table-resizing-columns in index file <script src="bower_components/ng-table/dist/ng-table.min.js"></script> <script src="bower_components/ng-table-resizable-columns/ng-table-resizable-columns.js"></script> |
@Manasa74 have you loaded angular before both of them? I probably can help a bit more if you could paste your code on Plunker... |
Hi, dear engineer, I am just wondering if you guys ever think about adding the resizing column feature like ng-grid, thanks!
Doug
The text was updated successfully, but these errors were encountered: