Ag-Grid : Modify data in one grid while applying filter in another Grid
up vote
2
down vote
favorite
I have 2 grids side by side as per design and both will have same no.of rows. i need to apply filter in one column of grid1 and same amount rows should be in both the grids after applying filter also.
Component.ts
GridOptions = <GridOptions>{
enableFilter: true,
rowSelection: 'multiple',
enableSorting: false,
enableColResize: true,
singleClickEdit: true,
animateRows: true,
headerHeight: 50,
rowClass: 'rowClass',
headerClass: 'GridHeader',
overlayNoRowsTemplate: " ",
context: {
componentParent: this
},
onFilterModified: this.GridFilter
};
GridColumnDefs = [{
headerName: "Student Name", field: "name", width: 90, editable: true,
filter: 'agTextColumnFilter'
},];
releaseFilter(params: any) {
var data = params.api.getRenderedNodes()
}
I got the filtered rows of grid1 but dont know how to set the filtered index for the second grid. Thanks in advance
javascript angular typescript ag-grid ag-grid-angular
add a comment |
up vote
2
down vote
favorite
I have 2 grids side by side as per design and both will have same no.of rows. i need to apply filter in one column of grid1 and same amount rows should be in both the grids after applying filter also.
Component.ts
GridOptions = <GridOptions>{
enableFilter: true,
rowSelection: 'multiple',
enableSorting: false,
enableColResize: true,
singleClickEdit: true,
animateRows: true,
headerHeight: 50,
rowClass: 'rowClass',
headerClass: 'GridHeader',
overlayNoRowsTemplate: " ",
context: {
componentParent: this
},
onFilterModified: this.GridFilter
};
GridColumnDefs = [{
headerName: "Student Name", field: "name", width: 90, editable: true,
filter: 'agTextColumnFilter'
},];
releaseFilter(params: any) {
var data = params.api.getRenderedNodes()
}
I got the filtered rows of grid1 but dont know how to set the filtered index for the second grid. Thanks in advance
javascript angular typescript ag-grid ag-grid-angular
Please consider creating a Minimal Sample StackBlitz Sample replicating this issue,
– SiddAjmera
Nov 20 at 10:02
this is not an issue. dont know how to implementation. After filter if the grid1 has two records then grid2 should have two records
– anand
Nov 20 at 10:20
Sure. Just click here and you'll be good to go.
– SiddAjmera
Nov 20 at 10:21
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have 2 grids side by side as per design and both will have same no.of rows. i need to apply filter in one column of grid1 and same amount rows should be in both the grids after applying filter also.
Component.ts
GridOptions = <GridOptions>{
enableFilter: true,
rowSelection: 'multiple',
enableSorting: false,
enableColResize: true,
singleClickEdit: true,
animateRows: true,
headerHeight: 50,
rowClass: 'rowClass',
headerClass: 'GridHeader',
overlayNoRowsTemplate: " ",
context: {
componentParent: this
},
onFilterModified: this.GridFilter
};
GridColumnDefs = [{
headerName: "Student Name", field: "name", width: 90, editable: true,
filter: 'agTextColumnFilter'
},];
releaseFilter(params: any) {
var data = params.api.getRenderedNodes()
}
I got the filtered rows of grid1 but dont know how to set the filtered index for the second grid. Thanks in advance
javascript angular typescript ag-grid ag-grid-angular
I have 2 grids side by side as per design and both will have same no.of rows. i need to apply filter in one column of grid1 and same amount rows should be in both the grids after applying filter also.
Component.ts
GridOptions = <GridOptions>{
enableFilter: true,
rowSelection: 'multiple',
enableSorting: false,
enableColResize: true,
singleClickEdit: true,
animateRows: true,
headerHeight: 50,
rowClass: 'rowClass',
headerClass: 'GridHeader',
overlayNoRowsTemplate: " ",
context: {
componentParent: this
},
onFilterModified: this.GridFilter
};
GridColumnDefs = [{
headerName: "Student Name", field: "name", width: 90, editable: true,
filter: 'agTextColumnFilter'
},];
releaseFilter(params: any) {
var data = params.api.getRenderedNodes()
}
I got the filtered rows of grid1 but dont know how to set the filtered index for the second grid. Thanks in advance
javascript angular typescript ag-grid ag-grid-angular
javascript angular typescript ag-grid ag-grid-angular
edited Nov 20 at 9:59
Eugene Mihaylin
9621424
9621424
asked Nov 20 at 9:52
anand
745933
745933
Please consider creating a Minimal Sample StackBlitz Sample replicating this issue,
– SiddAjmera
Nov 20 at 10:02
this is not an issue. dont know how to implementation. After filter if the grid1 has two records then grid2 should have two records
– anand
Nov 20 at 10:20
Sure. Just click here and you'll be good to go.
– SiddAjmera
Nov 20 at 10:21
add a comment |
Please consider creating a Minimal Sample StackBlitz Sample replicating this issue,
– SiddAjmera
Nov 20 at 10:02
this is not an issue. dont know how to implementation. After filter if the grid1 has two records then grid2 should have two records
– anand
Nov 20 at 10:20
Sure. Just click here and you'll be good to go.
– SiddAjmera
Nov 20 at 10:21
Please consider creating a Minimal Sample StackBlitz Sample replicating this issue,
– SiddAjmera
Nov 20 at 10:02
Please consider creating a Minimal Sample StackBlitz Sample replicating this issue,
– SiddAjmera
Nov 20 at 10:02
this is not an issue. dont know how to implementation. After filter if the grid1 has two records then grid2 should have two records
– anand
Nov 20 at 10:20
this is not an issue. dont know how to implementation. After filter if the grid1 has two records then grid2 should have two records
– anand
Nov 20 at 10:20
Sure. Just click here and you'll be good to go.
– SiddAjmera
Nov 20 at 10:21
Sure. Just click here and you'll be good to go.
– SiddAjmera
Nov 20 at 10:21
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53390313%2fag-grid-modify-data-in-one-grid-while-applying-filter-in-another-grid%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please consider creating a Minimal Sample StackBlitz Sample replicating this issue,
– SiddAjmera
Nov 20 at 10:02
this is not an issue. dont know how to implementation. After filter if the grid1 has two records then grid2 should have two records
– anand
Nov 20 at 10:20
Sure. Just click here and you'll be good to go.
– SiddAjmera
Nov 20 at 10:21