<div class="gridStyle" ng-init="getList()" id="integratorTemplateGrid" ej-grid e-datasource="data" e-columns="columns" e-allowkeyboardnavigation="true" e-allowpaging="true" e-allowgrouping="true" e-allowfiltering="true" e-filtersettings-filtertype="excel" e-actioncomplete="actioncomplete"> </div> $("#integratorTemplateGrid").on("keydown", function (e) { var obj = $("#integratorTemplateGrid").ejGrid("instance"), cell; var currentcell = $("#integratorTemplateGrid").find(".e-activecell"); if (e.shiftKey) {
. . . . . if (e.keyCode == 70) { //shift + F - Open filter obj.getHeaderTable().find(".e-activecell .e-filtericon").trigger("tap"); } } . . . . |
Hi Rakesh,
We have analyzed your query and we have achieved your requirement using keydown even on filter dialog. Please refer to the following code example.
<div class="gridStyle" ng-init="getList()" id="integratorTemplateGrid" ej-grid e-datasource="data" . . . e-actioncomplete="complete" >
angular.module('integratorModule', ['ejangular']) .controller('integratorTemplatesController', ["$scope", function ($scope) { . . . $scope.complete = function(args){ if(args.requestType == "filterafteropen"){ . . . $("#integratorTemplateGrid").find(".e-excelfilter").find("#integratorTemplateGrid_SearchBox:visible").focus(); //focus search box in dialog } } . . . $(document).on("keydown",".e-excelfilter",function(e){ if(e.keyCode === 13) //enter key for ok $("#integratorTemplateGrid").find(".e-excelfilter").find("#integratorTemplateGridnumber_OkBtn:visible").trigger("click"); if(e.keyCode === 27) //Esc key for cancel $("#integratorTemplateGrid").find(".e-excelfilter").find("#integratorTemplateGridnumber_CancelBtn:visible").trigger("click"); }); . . . } |
We have modified the sample that can be downloaded from the following link:
http://www.syncfusion.com/downloads/support/forum/120267/ze/ang-key-191355791
Regards,
Saravanan A.
Hi Rakesh
We analyzed your query and we considered this query “Perform Grid operation such as filtering sorting and grouping using keyboard” as a feature and a support incident has been created under your account to track the status of this feature. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Regards,
Saravanan A.