keyboard navigation with filter popup
Attachment: filterkeyboard_de95f4a3.rar
Thanks for contacting Syncfusion products.
From the query we understood that you want to open the filter menu using key board. To do so we can use the following code example to achieve the requirement.
|
<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"); } } . . . . |
We have also created a simple sample and the same can be downloaded from the below location.
Sample Location: http://www.syncfusion.com/downloads/support/forum/120244/ze/ang-key-1793485026
Regards,
Madhu Sudhanan. P
Attachment: filterkeyboard_72e87bd5.rar
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.
- 5 Replies
- 3 Participants
-
RA Rakesh Advani
- Sep 16, 2015 06:02 AM UTC
- Sep 28, 2015 12:48 PM UTC