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

Not able to Expand the row by default while adding a new row

1 Answer 125 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pavan
Top achievements
Rank 1
Pavan asked on 15 Nov 2016, 10:35 PM

The Grid is having two columns which are using two cell templates and not using any RowDetails template. 

While adding a new row, i need to click on "+" button and need to click again on the left end of the row to see the expanded row with loaded cell templates.

But i want to achieve with only single click "+" to add a expanded row. 

Below is the code snippet used for the grid:

 <views:RadGridView x:Name="datasource" Grid.Row="1" ItemsSource="{Binding Path=DataSource.StructuredParties}" 
                                        Margin="5" AutoGenerateColumns="False" ShowGroupPanel="False" IsFilteringAllowed="False" 
                                        CanUserSortColumns="False" VerticalAlignment="Top" ShowInsertRow="True" 
                                        SelectedItem="{Binding SelectedPartyModel}" KeyboardNavigation.TabNavigation="Continue" 
                                        CellEditEnded="FwAbstractEntityGridView_CellEditEnded" Deleting="FwAbstractEntityGridView_Deleting">
            <views:RadGridView.Columns>
                <views:RadGridViewDataColumn 
                    Header="{x:Static Resources:OcrMessages.PartyTypeColumnHeader}" 
                    DataMemberBinding="{Binding Converter={StaticResource partyNameConverter}}" 
                    CellTemplate="{StaticResource DataEditTemplate}" Width="*" />
                
                <views:RadGridViewDataColumn Header="{x:Static Resources:OcrMessages.PartySharePortionColumnHeader}" 
                    DataMemberBinding="{Binding GroupShare, Converter={StaticResource zeroNumberConverter}}" 
                    CellTemplate="{StaticResource SharePortionEditTemplate}" Width="Auto" />
            </views:RadGridView.Columns>
        </views:RadGridView>

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 18 Nov 2016, 01:45 PM
Hello Pavan,

In case I am not missing anything, the possible approaches for satisfying this requirement is discussed in the Expanding Row Details on New Row forum thread. Can you please check it out?

Hopefully, it helps.

Regards,
Stefan X1
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
Tags
GridView
Asked by
Pavan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or