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

InsertRow at the end

1 Answer 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Francois
Top achievements
Rank 1
Francois asked on 08 Dec 2010, 08:29 PM
Hi,

Is there an easy way (without making a full template) to customise the insert row ?

I've set CanInsertRows and ShowInsertRow to true and ive got a row with the text  "Click here to add a new item" as the first row. I would prefer toe have an empty row at the end representing the new row...

  <trk:RadGridView x:Name="tblSanctDecisMed" Height="130"
             trkT:StyleManager.Theme="Windows7"
             AutoGenerateColumns="False"
             RowIndicatorVisibility="Visible"
             Width="682"
             Margin="10"
             HorizontalAlignment="Left"
             ScrollViewer.VerticalScrollBarVisibility="Visible"
             ReorderColumnsMode="None"
             ShowGroupPanel="false"
             ItemsSource ="{Binding Path=MembresEquipe}"
             CanUserDeleteRows="False"
             CanUserFreezeColumns="False"
             CanUserInsertRows="True"
             CanUserReorderColumns="False"
             CanUserSortColumns="True"
             ShowInsertRow="True"
             IsBusy="False"
             IsScrolling="False"
                      
                    
                      
        <trk:RadGridView.Columns>
              <trk:GridViewDataColumn Header="Matricule"
                          Width="125" 
                          DataMemberBinding="{Binding Path=NoMatricule}"
                          IsFilterable="False"
                          IsGroupable="False" />
              <trk:GridViewDataColumn Header="Nom/PrĂ©nom"
                          Width="*"
                          DataMemberBinding="{Binding Path=NomEmploye}"
                          IsFilterable="False"
                          IsGroupable="False"
                          IsReadOnly="True" />
              </trk:RadGridView.Columns>                  
</trk:RadGridView>

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 09 Dec 2010, 09:45 AM
Hi Francois,

Unfortunately there is no easy way to change the position of the NewRow in a RadGridView. You need to edit its template in order to achieve the desired result. You can get some more detailed information about this topic in the following forum thread.

Alternatively, you can do is to scroll into the newly added item as shown in this how-to article.

  
Kind regards,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
GridView
Asked by
Francois
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or