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

[Solved] RowIsExpandedChanging and RowIsExpandedChanged are never raised

8 Answers 333 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.
Alexandre
Top achievements
Rank 1
Alexandre asked on 18 Jan 2011, 09:42 PM
Please close this issue... 

Regards,

Alex

8 Answers, 1 is accepted

Sort by
0
Patrick
Top achievements
Rank 1
answered on 26 Jul 2011, 06:35 PM
I am testing out the trial version of this along with other third-party controls to determine which my company should purchase and ran into this error as well.

I have added this event many different ways to no avail:

<telerik:RadGridView x:Name="staffRGV" Grid.Row="1" AutoGenerateColumns="False" ItemsSource="{Binding DataView, ElementName=staffDDS}" IsBusy="{Binding IsBusy, ElementName=staffDDS}"
                             AddingNewDataItem="AddNewDataRow" RowIndicatorVisibility="Collapsed" RowEditEnded="UpdateAuditFields" RowIsExpandedChanged="staffRGV_RowIsExpandedChanged">
            <telerik:RadGridView.Columns>
                <telerik:GridViewToggleRowDetailsColumn />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding STAFF_ID}" Header="Staff ID" IsReadOnly="True" />
                .....
and also by

this.staffRGV.RowIsExpandedChanged += new EventHandler<RowCancelEventArgs>(staffRGV_RowIsExpandedChanged);
            this.staffRGV.RowIsExpandedChanging += new EventHandler<RowEventArgs>(row_IsExpandedChanging);

Each method, staffRGV_RowIsExpandedChanged and row_IsExpandedChanging, simply contains a throw new Exception(); line, which never occurs upon clicking on the plus sign in the GridViewToggleRowDetailsColumn.

Am I using this control incorrectly, or is there an actual bug here?
0
Vlad
Telerik team
answered on 27 Jul 2011, 07:13 AM
Hello Patrick,

 Can you post more info about the treelist version? 

Kind regards,
Vlad
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Patrick
Top achievements
Rank 1
answered on 27 Jul 2011, 03:43 PM
It is the most recent version of the Telerik controls for Silverlight, specifically version 2011.1.315.1040.

Also, I am using the GridView control.
0
Vlad
Telerik team
answered on 28 Jul 2011, 07:07 AM
Hello Patrick,

 Our latest official version is Q2 2011 - you have Q1 2011. 

Kind regards,
Vlad
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Yavor Georgiev
Telerik team
answered on 28 Jul 2011, 09:09 AM
Hi Patrick,

 From what I see, you are using the GridViewToggleRowDetailsColumn, which controls the row details visibility. However, both RowIsExpandedChanged and RowIsExpandedChanging fire when the row is expanded or collapsed to reveal hierarchy. I guess that you probably need to use the RowDetailsVisibilityChanged event, instead, as the GridViewToggleRowDetailsColumn fires that event, not the RowIsExpanded* events.

Best wishes, Yavor Georgiev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Patrick
Top achievements
Rank 1
answered on 03 Aug 2011, 09:05 PM
First of all, thank you for your response. That solution worked well, however, it brought about another issue.

The RowDetailsVisibilityChanged event will also fire when the radgrid's RowDetails are scrolled out of view. Is there a way I can avoid this?

Thanks,

Patrick
0
Vlad
Telerik team
answered on 08 Aug 2011, 10:11 AM
Hello Patrick,

 You can avoid this if you turn off the rows virtualization however this will affect the grid performance badly. 

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Patrick
Top achievements
Rank 1
answered on 12 Aug 2011, 04:21 AM
Ok thanks. I will have to find a workaround then.
Tags
GridView
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Patrick
Top achievements
Rank 1
Vlad
Telerik team
Yavor Georgiev
Telerik team
Share this question
or