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

[Solved] Is it possible to use RadExpander for showing RowDetails when a row is clicked?

5 Answers 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jonathon
Top achievements
Rank 1
Jonathon asked on 25 Aug 2011, 01:41 AM
Hi,

I was wondering if it were possible to have radexpander attached to each row so when the user clicks on a row to show the RowDetails, the RowDetails will slide open in similar fashion to what RadExpander does normally.

Thanks,

Jonathon

5 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 25 Aug 2011, 12:39 PM
Hello Jonathon,

 

You may animate RadGridView's RowDetails through predefining the template of DetailsPresenter and add your own custom animation similar to the default one of RadExpander.
 
Please take a look at the following forum thread "Row Details - Animation" for further reference. 



Greetings,
Vanya Pavlova
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Jonathon
Top achievements
Rank 1
answered on 25 Aug 2011, 06:01 PM
Hi Vanya,

Thanks for the reply, however, that is what I have right now. I guess I was unsure about how to change the animation to be like RadExpander. I have found the default style in RadExpander, but am unsure of what to takeout of it and put in my row. Here is some of the style elements from RadExpander:

<VisualState x:Name="DirectionDown">
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Width" Storyboard.TargetName="col0">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="*"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Height" Storyboard.TargetName="row1">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="*"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Row)" Storyboard.TargetName="Content">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
                                </ObjectAnimationUsingKeyFrames>
                            </Storyboard>
                        </VisualState>



<Setter Property="telerik:AnimationManager.AnimationSelector">
                <Setter.Value>
                    <telerik:AnimationSelector>
                        <telerik:ExpanderExpandCollapseAnimation AnimationName="Expand" Direction="In" TargetElementName="Content"/>
                        <telerik:ExpanderExpandCollapseAnimation AnimationName="Collapse" Direction="Out" TargetElementName="Content"/>
                    </telerik:AnimationSelector>
                </Setter.Value>
            </Setter>

Thanks,

Jonathon
0
Vanya Pavlova
Telerik team
answered on 25 Aug 2011, 06:16 PM
Hi Jonathon,

 
RadExpander is a Telerik control which provides this functionality our-of-the-box. As you may see from the defined VisualStates you are manipulating the "Content" based on RadExpander's specific properties. You cannot use it directly to animate DetailsPresenter in such way, because internally RadGridView is not aware of this functionality. I believe that the better approach is to construct this or similar one animation by your side to achieve the desired effect.  


Regards,
Vanya Pavlova
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Jonathon
Top achievements
Rank 1
answered on 26 Aug 2011, 01:40 AM
Thanks for letting me know.

It would be cool if Telerik had this built-in in a future version of the controls.

Jonathon
0
Miro Miroslavov
Telerik team
answered on 26 Aug 2011, 01:51 PM
Hi Jonathon,

 Thank you for your feedback. We'll consider implementing easier way to incorporate these animations.

Greetings,
Miro Miroslavov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
GridView
Asked by
Jonathon
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Jonathon
Top achievements
Rank 1
Miro Miroslavov
Telerik team
Share this question
or