[CLOSED] Filtering grid on multiple checked values

  1. #1

    [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:-

    Click image for larger version. 

Name:	CustomFilter.png 
Views:	16 
Size:	26.5 KB 
ID:	6677
    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 7:10 AM. Reason: [CLOSED]
  2. #2
    Hi @PriceRightHTML5team,

    I am not sure what exactly you are asking. How to get selection? If so, then:
    grid.getSelectionModel().getSelection();
    It returns an array of selected rows.

Similar Threads

  1. Replies: 1
    Last Post: Dec 06, 2012, 4:27 PM
  2. Selecting multiple values in Multiselect
    By masudcseku in forum 1.x Help
    Replies: 1
    Last Post: Nov 23, 2011, 8:26 AM
  3. Replies: 1
    Last Post: Feb 15, 2011, 1:21 PM
  4. Replies: 1
    Last Post: Jan 31, 2011, 8:45 AM
  5. how to get checked grid rows values in MVC
    By vs.mukesh in forum 1.x Help
    Replies: 0
    Last Post: Jun 23, 2010, 4:23 PM

Posting Permissions