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

Collapsing of expanded item after select an other item

3 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kristof
Top achievements
Rank 1
Kristof asked on 17 Mar 2010, 11:41 AM

Hello,

I have a RadGridView where I show data but in this control I have also a RadGridView.RowDetailsTemplate where I show
the details of the item in the RadGridView.
To show the details I make use of collapse and visible with an GridViewToggleRowDetailsColumn (+/- sign).
The data in the details is sometimes large therefore I want that the visible item would be collapsed after selecting an other item in the RadGridView.
How can I do this in code?

Thanks,
Kristof

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 18 Mar 2010, 11:40 AM
Hello Kristof,

You can set ExpandMode property of the GridViewToggleRowDetailsColumn to Single to achieve your goal. Please check the attached project for reference.

Greetings,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kristof
Top achievements
Rank 1
answered on 18 Mar 2010, 12:43 PM
Vlad,

I can't use that property because I use the version 2009.3.1103.1030 of the dll's.
And we must use that version because there are problems with the latest version more specific with the HTMLPlaceHolder.
Is there an other solution to fix this, maybe in code?

Thanks,
Kristof
0
Accepted
Vlad
Telerik team
answered on 18 Mar 2010, 01:25 PM
Hi Kristof,

I've attached an example to illustrate you how to create your own GridViewToggleRowDetailsColumn with such functionality.

Kind regards,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Kristof
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Kristof
Top achievements
Rank 1
Share this question
or