PivotGrid overriding keyboard shortcuts.

Hi,

I am having an issue where the PivotGrid on the page is prevented certain browser hotkeys from working. Specifically the Control + R hotkey for refreshing the page. I tested this behavior in both Firefox and Chrome. I suspect that the PivotGrid uses this hotkey in some way when you have a more interactive grid? Is there a way though the API to toggle this behavior off? I did not see anything in the documentation.

Thanks,
Dylan

1 Reply

MM Manikandan Murugesan Syncfusion Team November 28, 2017 12:24 PM UTC

Hi Dylan, 

You can disable the keyboard navigation by using “renderSuccess” event in PivotGrid. Please refer below code snippet. 
Code Snippet: [javascript] 
$("#PivotGrid1").ejPivotGrid({  
    renderSuccess: function (args)  
    { 
        this._off($(document), 'keydown', this._keyDownPress); 
        this._off($(document), 'keyup', this._keyUpPress); 
        if (!ej.isNullOrUndefined(this._schemaData)) { 
            this._schemaData._off($(document), 'keydown', this._schemaData._keyDownPress); 
            this._schemaData._off($(document), 'keyup'); 
        } 
    }  
}); 


Meanwhile, we have prepared sample for your reference. Please find the sample in below link. 

Thanks, 
Manikandan. 


Loader.
Up arrow icon