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

2 posts, 0 answers
  1. Pavan
    Pavan avatar
    1 posts
    Member since:
    Nov 2016

    Posted 15 Nov 2016 Link to this post

    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>

  2. Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 18 Nov 2016 Link to this post

    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.
Back to Top