none
MVC using Angularjs RRS feed

  • Question

  • Hi , 

    This is sai kumar

    can any body please help me to perform column wise filtering in angularjs using ng grid.

    By default ng grid provides global search for filtering [row wsie].

    But my requriement is how to do filters for column wise.[not row wise].

    Example: Code

                   

                  $scope.filterOptions = {
                    filterText: $scope.miinput,
                    useExternalFilter: true
                };

     $scope.pagingOptions = {
                    pageSize: 5,
                    currentPage: 1

                };

                $scope.gridOptions = {
                    data: 'groupList',
                    multiSelect: false,
                   columnDefs: 'myColumns',
                    rowHeight: 50,
                    headerRowHeight: 50,
                    enablePaging: true,
                    showFilter: true,   -->it provides global search[ row wise]..but i need column
                    showFooter: true,

                };

                $scope.myColumns = [

                      { field: 'ID', displayName: 'ID', width: 166.67, visible: true}, /
                      { field: 'Name', displayName: 'Name', width: 166.67},
                      { field: 'Designation', displayName: 'Designation', width: 166.67},
                      { field: 'Mobile', displayName: 'Mobile', width: 166.67}
                      
                ];

    Thanks in advance

    Wednesday, July 19, 2017 5:59 AM

All replies