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

GridViewToggleRowDetailsColumn expand Row only when clicked on the plus symbol

2 Answers 49 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Devid
Top achievements
Rank 1
Devid asked on 02 Apr 2019, 10:23 AM
How can I configure the RowDetails to open only when I click on the plus symbol and not on the whole row ?

<telerik:RadGridView Grid.Row="0"
                             Name="DmsBatchRadGridView"
                             KeyDown="DmsBatchRadGridView_OnKeyDown"
                             RowDetailsVisibilityMode="VisibleWhenSelected"
                             Filtered="DmsBatchRadGridView_OnFiltered"
                             ItemsSource="{Binding CollectionViewDmsBatch}"
                             AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewToggleRowDetailsColumn ExpandMode="Multiple" />
                <telerik:GridViewDataColumn Header="Batch ID" IsReadOnly="True"
                                            DataMemberBinding="{Binding SYSDMSBATCH}" />
                <telerik:GridViewDataColumn Header="Request Datum" DataMemberBinding="{Binding REQDATE}"
                                            IsReadOnly="True"
                                            DataFormatString="dd.MM.yyyy" />
                <telerik:GridViewDataColumn Header="Request Zeit"
                                            IsReadOnly="True"
                                            DataMemberBinding="{Binding REQTIME, Converter={StaticResource ClarionTimeToDateTimeConverter}}"
                                            DataFormatString="HH:mm" />
                <telerik:GridViewDataColumn Header="Fehler / Akte" IsReadOnly="True"
                                            DataMemberBinding="{Binding FehlerProAkte}" />
                <telerik:GridViewDataColumn Header="UseCase" IsReadOnly="True" DataMemberBinding="{Binding Method}" />
                <telerik:GridViewCheckBoxColumn Header="Retry"
                                                EditTriggers="CellClick"
                                                AutoSelectOnEdit="True"
                                                DataMemberBinding="{Binding RETRYONEERROR, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource IntToBoolConverter}}" />
                <telerik:GridViewCheckBoxColumn Header="Ignorieren"
                                                UniqueName="IgnoreColumn"
                                                EditTriggers="CellClick"
                                                AutoSelectOnEdit="True"
                                                DataMemberBinding="{Binding IGNORONEERROR, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource IntToBoolConverter}}">
                    <telerik:GridViewCheckBoxColumn.HeaderCellStyle> ....................


2 Answers, 1 is accepted

Sort by
0
Devid
Top achievements
Rank 1
answered on 04 Apr 2019, 09:05 AM
The documentation for WPF Telerik is really really bad. I can’t stress this enough! The whole documentation should be redone.

I did not find out the solution for the above problem, but I found something better. Instead of using the above GridViewToggleRowDetailsColumn I use the RadGridView.HierarchyChildTemplate and RadGridView.ChildTableDefinitions which behaves exactly as I want to [Basic Hierarchies]
0
Accepted
Dilyan Traykov
Telerik team
answered on 04 Apr 2019, 01:53 PM
Hello Devid,

I'm sorry to hear that you're dissatisfied with the quality of our documentation. I can assure you that we're constantly trying to improve its content and any feedback on the articles you have will be greatly appreciated. You can open new issues and/or pull requests in our GitHub repository or use the feedback form which can be found at the bottom of each page to share your constructive comments.

Back to your original reply, please let me clarify that when using row details, you should not use the GridViewToggleRowDetailsColumn together with the RowDetailsVisibilityMode as described in this article.

I do hope, however, that by using the HierarchyChildTemplate instead, you've now achieved the desired result. Please let me know if I can further assist you in any way.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Devid
Top achievements
Rank 1
Answers by
Devid
Top achievements
Rank 1
Dilyan Traykov
Telerik team
Share this question
or