8 Answers, 1 is accepted
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?
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!
Also, I am using the GridView control.
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!
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!
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
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 >>
