ng-matero / extensions

Angular Material Extensions Library.
https://ng-matero.github.io/extensions/
MIT License
393 stars 48 forks source link

Data Grid Refactor Roadmap #4

Open nzbin opened 4 years ago

nzbin commented 4 years ago
TejasCMehta commented 4 years ago

@nzbin you can refer to this https://ag-grid.com/example.php for further enhancement ideas.

TejasCMehta commented 4 years ago

how to achieve this type of custom headertemplate with filter inputs like, dropdown, datepicker etc?

headerTemplate should be first priority in your feature list.

image

panakour commented 4 years ago

Also I think header and footer template are the most important in the list

Laca81 commented 4 years ago

Also I think header and footer template are the most important in the list

Totally agree

nzbin commented 4 years ago

@TejasCMehta @panakour @Laca81 The header and footer template have been added. Please try the new version.

YuriGrandinetti commented 3 years ago

Hello, I downloaded the extensions and the ng-matero template, and I already upgraded to the new version of angular 10, still without any problems. I am wanting to use a datagrid project for my project, but I would like to know if you have a plan to implement this type of custom headertemplate with filter inputs like, dropdown, datepicker etc?

nzbin commented 3 years ago

@YuriGrandinetti I think you should customize the header template with your own logic.

YuriGrandinetti commented 3 years ago

ok, You are doing this implementation because I like its coding, simple to understand and easy to maintain, thank you

Em qua., 1 de jul. de 2020 às 10:25, Zongbin notifications@github.com escreveu:

@YuriGrandinetti https://github.com/YuriGrandinetti I think you should customize the header template with your own logic.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ng-matero/extensions/issues/4#issuecomment-652416868, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXCMEMNNDZ3HEXCUURZQNTRZM2NVANCNFSM4MGL6XLQ .

nzbin commented 3 years ago

@YuriGrandinetti Thanks for your advice,I will add this feature in future.

mlribes commented 3 years ago

[matSortActive], [matSortDirection] and matSortDisableClear support are also important in case of backend sort.

nzbin commented 3 years ago

[matSortActive], [matSortDirection] and matSortDisableClear support are also important in case of backend sort.

Many thanks for your PR, I have released a new version.

TejasM9 commented 3 years ago

@nzbin can you add right sidebar on the data grid page ? What I need is I want to open a right side bar with search form on the data grid page. can you guide me any better way to do that. I also want to open add/edit form like that too.

draylegend commented 3 years ago

With virtual scroll the performance of grid will be even better.

Angular issue, stackblitz example

ChrTall commented 2 years ago

@nzbin I have a requirment for selecting different rows and columns in a datagrid. Will this be possible after the datagrid is refactored? Thank you for your work. Is the current state of the refactored Datagrid in the dev branch?

nzbin commented 2 years ago

@nzbin I have a requirment for selecting different rows and columns in a datagrid. Will this be possible after the datagrid is refactored? Thank you for your work. Is the current state of the refactored Datagrid in the dev branch?

Have you checked the examples?

ChrTall commented 2 years ago

@nzbin Yes I have read them. I think I can achieve my goal by using a Custom header template with a checkbox. I have problems to use fxLayout inside the ng-template for expandable rows. Is this not possible or are there any gotchas ?

ismailix commented 2 months ago

I am using the data-grid structure in one of my projects, but it seems a bit plain. How can I export (pdf - excel) and filter and search within the table? thanks @nzbin

ramax495 commented 2 months ago

When using material table we can init data with dataSource. And there is no dataSource in Mtx-grid. Is it possible or could be upgraded to have this feature ?

nzbin commented 1 day ago

When using material table we can init data with dataSource. And there is no dataSource in Mtx-grid. Is it possible or could be upgraded to have this feature ?

@ramax495 I'm sorry, I don't quite understand what you mean. You can use the dataSource with the grid instance. https://github.com/ng-matero/extensions/blob/16d54b6435fb738060ee273a4dd37c9e5a304f18/projects/extensions/grid/grid.ts#L194

ramax495 commented 1 day ago

@nzbin I mean Input property that mat-table has: https://github.com/angular/components/blob/main/src/cdk/table/table.ts#L498

@Input() get dataSource(): CdkTableDataSourceInput<T>

where CdkTableDataSourceInput is:

/** Possible types that can be set as the data source for a `CdkTable`. */
export type CdkTableDataSourceInput<T> = readonly T[] | DataSource<T> | Observable<readonly T[]>;

In my case I have dataSource type that is derived from DataSource (from @angular/cdk/collections). When I use mat-table I can pass to input parameters my dataSource like this: [dataSource]="dataSource". In mtx-grig only array is allowed: https://github.com/ng-matero/extensions/blob/main/projects/extensions/grid/grid.ts#L201

nzbin commented 1 day ago

@nzbin I mean Input property that mat-table has: https://github.com/angular/components/blob/main/src/cdk/table/table.ts#L498

@Input() get dataSource(): CdkTableDataSourceInput<T>

where CdkTableDataSourceInput is:

/** Possible types that can be set as the data source for a `CdkTable`. */
export type CdkTableDataSourceInput<T> = readonly T[] | DataSource<T> | Observable<readonly T[]>;

In my case I have dataSource type that is derived from DataSource (from @angular/cdk/collections). When I use mat-table I can pass to input parameters my dataSource like this: [dataSource]="dataSource". In mtx-grig only array is allowed: https://github.com/ng-matero/extensions/blob/main/projects/extensions/grid/grid.ts#L201

I'm sorry, mtx-grid is not exactly equal with mat-table. If you have any other ideas, please give me a PR.