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

RowDetailsTemplate wont go away on Click

1 Answer 22 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rodney Foley
Top achievements
Rank 1
Rodney Foley asked on 19 Nov 2009, 05:40 PM
When setting the RowDetailsTemplate to a control that will display some details form the selected row, and having RowDetailsVisibilityMode="VisibleWhenSelected" works great.  The only issue is that the only way to hide the details is to CTRL-Click the selected row and it goes away.  The user would expect that a click would hide it just as a click made it visible.  Maybe I didn't set some property right or something but it seemed rather straight forward, and used an article from Telerik showing how to do this.

Is there any workaround for this issue, the users are complaining that once they see what they wanted they would like to go away with a simple click.  This request seems reasonable, and how it should work out of the box.

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 20 Nov 2009, 11:52 AM
Hello Rodney Foley,

In order to achieve this behavior you can change the SelectionMode of the grid to SelectionMode.Multiple. This will cause a mouse click to select an un-selected row and un-select a selected row.

Alternatively, you can add a GridViewToggleRowDetailsColumn to the grid as demonstrated in our First Look Example.

Best wishes,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Rodney Foley
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or