We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to disable the keyboard shortcuts for Pivotgrid?

Thread ID:

Created:

Updated:

Platform:

Replies:

151387 Feb 10,2020 11:25 AM UTC Feb 13,2020 06:24 AM UTC Angular - EJ 2 3
loading
Tags: PivotView
Shreekumar
Asked On February 10, 2020 11:25 AM UTC

How to disable the keyboard shortcuts for Pivot-Grid?

Sivamathi Natarajan [Syncfusion]
Replied On February 11, 2020 02:48 PM UTC

 
Currently, the pivot table doesn’t have option to disable the keyboard navigation. And, we don’t have any immediate plans to implement it.  
 
Regards, 
Sivamathi. 


Shreekumar
Replied On February 12, 2020 08:44 AM UTC

As implemented in this example, I'm appending a TextBox inside a cell for edit purpose. But, due to PivotGrid keyboard shortcuts, I'm unable to use Left Arrow Key and Right Arrow Keys within a TextBox.

Sivamathi Natarajan [Syncfusion]
Replied On February 13, 2020 06:24 AM UTC

 
You can restrict the keyboard shortcuts using following code example. 
 
Code Example: 
 
<div class="row"> 
  <ejs-pivotview #pivotview id='PivotView' [dataSourceSettings]=dataSourceSettings showTooltip='false' width='100%' 
    height='300' [gridSettings]='gridSettings' [editSettings]='editSettings' (drillThrough)='drillThrough($event)' (dataBound)='dataBound($event)'> 
  </ejs-pivotview> 
</div> 
 
 
dataBound(args): void { 
    this.pivotObj.grid.addEventListener('keyPressed', this.keyDownHandler.bind(this)); 
  } 
 
  keyDownHandler(args: KeyboardEventArgs) { 
    args.cancel = true; 
  } 
 
 
 
Meanwhile, we have prepared a sample for your reference. Kindly check the below sample link. 
 
 
We hope the above sample meets your requirements. 
 
Regards, 
Sivamathi. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon