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

Row Details ToggleButton Not Syncing With Selected Row

3 Answers 30 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Barry
Top achievements
Rank 1
Barry asked on 12 Oct 2012, 04:48 PM
I have some row details in a gridview and it is set to RowDetailsVisibilityMode="VisibleWhenSelected" and ExpandMode="Single". The toggle button is supposed to show a plus sign (+) when closed and a minus sign (-) when open. The problem is that when I user clicks on the row, the details open and the toggle button stays the same state - closed (+). How can I get it to sync with the opening of the row when the row is selected?

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 15 Oct 2012, 12:55 PM
Hello,

This would be the expected behaviour as by design the GridViewToggleButton and the RowDetailsVisibilityMode should not be used together. Please check this help article for a reference.

Furthermore you do not need to set the ExpandMode as it is already single when the RowDetailsVisibilityMode is VisibleWhenSelected.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Barry
Top achievements
Rank 1
answered on 15 Oct 2012, 01:42 PM
How is it expected behavior that when a row details is visible that the plus sign doesn't change to a minus sign? I want the row details to be viewable, but also give the user the ability to close it if they want to. If you take away the toggle button, you take away the ability to collapse the row details...

So there is no way to do this? This seems like very bad design.

0
Dimitrina
Telerik team
answered on 16 Oct 2012, 08:42 AM
Hi,

Indeed, it is not quite convenient that you cannot use both expand options at ones.

The user could collapse the selected row by deselecting it. Another approach would be rely on the Toggle button only and expand the row on its selection (using additional logic).

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Barry
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Barry
Top achievements
Rank 1
Share this question
or