This is a migrated thread and some comments may be shown as answers.

How do you Disable Detail Table Expand/Collapse with Enter Key

1 Answer 266 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Scott Maple
Top achievements
Rank 1
Scott Maple asked on 15 Jul 2009, 02:02 AM
At a customers request, I am trying to have a RadGrid go into edit mode on a mouse click in a grid row and update the item when another row is selected or the 'Enter' key is pressed. I got it all to work, except that the grid has a details table that wants to expand or collapse when the 'Enter' key is pressed, which is visually unappealing. I have the HierarchyLoadMode of the master table view set to 'Client'. I have not been able to find a setting in the grid object model (I'm building this as a SharePoint web part, so everything is C# code behind using the RadGrid objects) that disables this behaviour. Does anyone know how to disable this?

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 17 Jul 2009, 02:01 PM
Hello Scott,

Generally, the nested table for the respective grid row should not attempt to be expanded/collapsed on [ENTER] key press unless you focus the expand/collapse button in the row explicitly. You can test that on the following online demo of the product:

http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/hierarchyloadmodeclient/defaultcs.aspx

Please review your code to check whether some custom javascript logic causes this unwanted effect. Additionally, if you would like to implement edit on double-click in grid hierarchy, refer to the following code library entry.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Scott Maple
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or