Aug 02, 2013, 7:42 AM
[CLOSED] Filtering grid on multiple checked values
Hi,
I am using gridpanel(MainGrid).
MainGrid columns having image in column headers and on click of that image one window will open which
contains childgrid panel.the unique values from maingrid column are given to the store of childgrid.
Childgrid contains checkboxselectionmodel.On click of single checkbox I am able to filter Maingrid records using code shown below:-
Refer attachment.
where 'checkedComponents' means checkedrecords from childgrid.
But I want to filter MainGrid with multiple Checked values which is not achievable with above code and I am not getting the exact way of doing it.
Please suggest me the way or sample of code for this issue.
Thanks.
I am using gridpanel(MainGrid).
MainGrid columns having image in column headers and on click of that image one window will open which
contains childgrid panel.the unique values from maingrid column are given to the store of childgrid.
Childgrid contains checkboxselectionmodel.On click of single checkbox I am able to filter Maingrid records using code shown below:-
Refer attachment.
<script>
App.MainGrid.getStore().filterBy(function (record) {
if (record.data.UserName === checkedComponents) {
return true;
}
return false;
}
</script>
where 'checkedComponents' means checkedrecords from childgrid.
But I want to filter MainGrid with multiple Checked values which is not achievable with above code and I am not getting the exact way of doing it.
Please suggest me the way or sample of code for this issue.
Thanks.
Last edited by Daniil; Aug 08, 2013 at 6:10 AM.
Reason: [CLOSED]