Row Details ToggleButton Not Syncing With Selected Row

4 posts, 0 answers
  1. Barry
    Barry avatar
    90 posts
    Member since:
    Jul 2011

    Posted 12 Oct 2012 Link to this post

    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?
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 15 Oct 2012 Link to this post

    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.

  3. DevCraft banner
  4. Barry
    Barry avatar
    90 posts
    Member since:
    Jul 2011

    Posted 15 Oct 2012 Link to this post

    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.

  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 16 Oct 2012 Link to this post

    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.

Back to Top