The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have created an editable cell in a GroupCaptionSummaryCell row. After the user types in a value and hits the ENTER key, the caption row expands/collapses. Is there anyway to disable the expand/collapse behavior when hitting the ENTER key?
ADAdministrator Syncfusion Team October 9, 2006 04:48 AM UTC
Hi Eric,
Try this code to handle the Enter Key behavior in a grid.
//Main Table in a grid this.gridGroupingControl1.TableControl.WantEnterKey = false;
//Any tablecontrol in a Grid. this.grid.GetTableControl("TableName").WantEnterKey = false;
Let me know if this helps.
Best Regards, Haneef
EWEric WeberOctober 9, 2006 06:57 PM UTC
I added this code, and it certainly does disable the ENTER button.
Now, after I type a value into the cell and hit the ENTER button, nothing happens. I tried catching the event in the TableControlKeyUp event, but it didn''t fire.
Prior to adding the WantEnterKey code, the enter key was firing the TableControlCurrentCellValidated event, and this is where I had my validation/rollback code.
Any suggestions?
thanks,
eric
ADAdministrator Syncfusion Team October 10, 2006 11:07 AM UTC
Hi Eric,
You can use the TableControlCurrentCellControlKeyMessage event to detect the Enter Key when the currentcell is in EditingMode. Here is a code snippet
This event is called from current cell control''''s ProcessKeyMessage method and gives you a chance to modify the default behavior of this method. Be aware that this a very implementation-specific method and you should only handle this event if KeyDown,KeyUp,CurrentCellKeyDown or CurrentCellKeyUP events are not good enough.