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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Custom drag ui with localization

Thread ID:

Created:

Updated:

Platform:

Replies:

141806 Jan 4,2019 08:33 PM UTC Jan 7,2019 10:51 AM UTC WPF 2
loading
Tags: SfTreeGrid
MrHessellund
Asked On January 4, 2019 08:33 PM UTC

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

Arulraj A [Syncfusion]
Replied On 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 
  



MrHessellund
Replied On January 7, 2019 10:51 AM UTC

Thank you very much. This explains it fine.

Thank you for a great product.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;