Windows PING on Tab

Hi,

When I am editing a column in the grid and Tab to the next column windows makes a DING sounds. How do I stop this? It does not make a sound when I edit a column then arrow to the next column.



5 Replies

FP Farjana Parveen Ayubb Syncfusion Team March 11, 2020 09:04 AM UTC

Hi Kim 
 
Thanks for contacting Syncfusion support.  
 
SfDataGrid doesn’t have direct support to disable this sound, which occurs when pressing Tab, Enter and Escape keys on the TextBox. It is the behavior of the default TextBox. However you can disable this by enabling the SuppressKeyPress property within the KeyDown event of the TextBox. In SfDataGrid cells this can be achieved by creating custom renderer. Please refer to the following code example to achieve this in text column.  
 
this.sfDataGrid.CellRenderers["TextBox"] = new GridTextBoxCellRendererExt(); 
 
class GridTextBoxCellRendererExt : GridTextBoxCellRenderer 
{ 
    protected override void OnInitializeEditElement(DataColumnBase column, Syncfusion.WinForms.GridCommon.ScrollAxis.RowColumnIndex rowColumnIndex, TextBox uiElement) 
    { 
        base.OnInitializeEditElement(column, rowColumnIndex, uiElement); 
        uiElement.KeyDown += uiElement_KeyDown; 
    } 
 
    protected override void OnUnwireEditUIElement(TextBox uiElement) 
    { 
        base.OnUnwireEditUIElement(uiElement); 
        uiElement.KeyDown -= uiElement_KeyDown; 
    } 
 
    void uiElement_KeyDown(object sender, KeyEventArgs e) 
    { 
        if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Tab || e.KeyCode == Keys.Escape) 
            e.SuppressKeyPress = true; 
    } 
} 
 
 
 
 
Please let us know if your need any further assistance in this. 
 
Regards, 
Farjana Parveen A 
 



KD Kim Dobranski March 11, 2020 06:46 PM UTC

Thanks but I don't want to disable the tab key.  I just want the sound to go away. Other vendors grids don't do this.


SS Sampathnarayanan Sankaralingam Syncfusion Team March 12, 2020 02:21 PM UTC

Hi Kim,   
 
Thank you for your update.  
 
We have checked your reported issue. Its working fine from our end, tab key is processed as expected. Please refer to the below video link and the sample, 
 
 
Please check the above sample and revert us if you still facing the same issue? If yes, please modify the sample based on your scenario. It will be helpful for us to check on it and provide you the solution at the earliest.     
 
Regards,   
Sampath Narayanan S   



KD Kim Dobranski March 12, 2020 06:49 PM UTC

Hi you can close this and disregard. I have decided to go with a different grid control.


FP Farjana Parveen Ayubb Syncfusion Team March 13, 2020 09:29 AM UTC

 Hi Kim, 
 
Sorry for the inconvenience caused. 
 
As per our provided workaround, we have only suppressed the ping sound and we have not suppressed the Tab key. As expected, the Tab key navigation works properly, and we could not reproduce the issue of suppressing Tab key. Could you please share your sample, otherwise please modify the below sample to reproduce the reported issue, that will help us to provide the better solution at the earliest.  
  
 
Could you please share the reason for choosing other grid control? We will make every effort to provide the solution for all your queries. 
 
Regards, 
Farjana Parveen A 


Loader.
Up arrow icon