We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Custom drag ui with localization

Hi,

How do maintain localization while customising the drag-and-drop ui like described here: https://help.syncfusion.com/wpf/sftreegrid/row-drag-and-drop#customize-default-drag-ui

I seem to only be able to get english.

Please advise

Best regards

2 Replies

AA Arulraj A Syncfusion Team January 7, 2019 09:19 AM UTC

Hi Johannes, 
 
Thanks for using Syncfusion product. 
 
You can maintain the localization of Default Drag UI in treegrid by editing the default value of Syncfusion.SfGrid.WPF.de.resx file. 
 
Please refer the following UG links. 
 
 
And you can maintain the localization for customized drag UI by adding the new resources for your specified culture.  
 
 
 
 
 
 
<DataTemplate x:Key="dragdroptemplate"> 
    <Border x:Name="border" Width="250"   
                Background="#ececec"  
                BorderBrush="#c8c8c8"  Height="60" 
                BorderThickness="1.2"> 
 
        <Grid  VerticalAlignment="Center"  
                HorizontalAlignment="Left"> 
            <Grid.RowDefinitions> 
                <RowDefinition Height="Auto"/> 
                <RowDefinition Height="Auto"/> 
                <RowDefinition Height="Auto"/> 
            </Grid.RowDefinitions> 
            <Grid.ColumnDefinitions> 
                <ColumnDefinition Width="Auto"/> 
                <ColumnDefinition Width="Auto"/> 
            </Grid.ColumnDefinitions> 
 
            <TextBlock Padding="12,0,0,0" Text="{x:Static Properties:Resources.DraggingRowsCount}" FontSize="14" FontFamily="Segoe UI"  
                            Foreground="#333333" FontWeight="Regular" Background="SkyBlue" /> 
 
            <TextBlock Text="{Binding DraggingRecords.Count}" FontSize="14"  
                            FontFamily="Segoe UI" 
                            FontWeight="Regular"  
                            Foreground="#333333"  
                            Grid.Column="1" Margin="-100,0,0,0"/> 
 
            <Separator  Grid.Row="1" Height="2" BorderBrush="#c8c8c8" 
                            HorizontalAlignment="Stretch"  BorderThickness="1" 
                            VerticalAlignment="Stretch"  Width="250"/> 
 
            <TextBlock Text="{x:Static Properties:Resources.DropStatus}" 
                            Foreground="#333333" 
                            Padding="12,0,0,0" Background="SkyBlue" 
                            FontFamily="Segoe UI"  
                            FontWeight="Regular"  
                            FontSize="14" 
                            Grid.Row="2"/> 
 
            <TextBlock Text="{Binding DragStatus, Converter={StaticResource resourceValueConverter}}"  
                            FontSize="14" 
                            FontFamily="Segoe UI" 
                            FontWeight="Regular" 
                            Foreground="#333333"  
                            Margin="-163,0,0,0" 
                            Grid.Row="2"  
                            Grid.Column="1"/> 
        </Grid> 
    </Border> 
</DataTemplate> 
 
 
 
Let us know whether this helps also if you need any further assistance on this. 
 
Arulraj A 
  




MR MrHessellund January 7, 2019 10:51 AM UTC

Thank you very much. This explains it fine.

Thank you for a great product.

Loader.
Live Chat Icon For mobile
Up arrow icon