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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Processing feedback

Thread ID:

Created:

Updated:

Platform:

Replies:

146737 Aug 16,2019 12:59 PM UTC Aug 20,2019 09:31 AM UTC WPF 3
loading
Tags: SfDataGrid
Thiago Renan Gomes
Asked On August 16, 2019 12:59 PM UTC

Hello,

I would like help implementing a processing tracking so that the user is not looking at a frozen screen while Datagrid is performing lengthy processing like groupings and filters in millions of records.

Farjana Parveen Ayubb [Syncfusion]
Replied On August 19, 2019 11:27 AM UTC

Hi Thiago, 
 
Thank you for using Syncfusion controls. 
 
SfDataGrid have a BusyIndicator support. If you enable the ShowBusyIndicator property for SfDataGrid, user can get the notification when processing the grouping and filtering with millions of records. 
 
<syncfusion:SfDataGrid x:Name="dataGrid"  
                       ShowBusyIndicator="True" 
                       AllowFiltering="True"                
                       ShowGroupDropArea="True"  
                       ItemsSource="{Binding Orders}"/> 
 
 
 
 
Please let us know if you need any further details on this. 
 
Regards, 
Farjana Parveen A 


Thiago Renan Gomes
Replied On August 19, 2019 11:58 AM UTC

Thanks for the reply, 

I would like to know if I can customize this BusyIndicator. It would be possible ?

Farjana Parveen Ayubb [Syncfusion]
Replied On August 20, 2019 09:31 AM UTC

Hi Thiago, 
Thank you for your update. 
You can able to customize the BusyIndicator by edit the control template for SfDataGrid, please refer the below code example 
<Style TargetType="{x:Type syncfusion:SfDataGrid}"> 
            <Setter Property="RowDragDropTemplate"> 
                <Setter.Value> 
                    <DataTemplate> 
                        <Border x:Name="border" BorderBrush="#FFC8C8C8" BorderThickness="1.2" Background="#FFECECEC" Height="60" Width="205"> 
                            <Grid HorizontalAlignment="Left" VerticalAlignment="Center"> 
                                <Grid.ColumnDefinitions> 
                                    <ColumnDefinition Width="Auto"/> 
                                    <ColumnDefinition Width="Auto"/> 
                                </Grid.ColumnDefinitions> 
                                <Grid.RowDefinitions> 
                                    <RowDefinition Height="Auto"/> 
                                    <RowDefinition Height="Auto"/> 
                                    <RowDefinition Height="Auto"/> 
                                </Grid.RowDefinitions> 
                                <TextBlock Foreground="#FF333333" FontWeight="Normal" FontSize="14" FontFamily="Segoe UI" Padding="12,0,0,0" Text="{Binding}"><Run Text="Dragging rows count : "/></TextBlock> 
                                <TextBlock Grid.Column="1" Foreground="#FF333333" FontWeight="Normal" FontSize="14" FontFamily="Segoe UI" Margin="-100,0,0,0" Text="{Binding DraggingRecords.Count}"/> 
                                <Separator BorderBrush="#FFC8C8C8" BorderThickness="1" HorizontalAlignment="Stretch" Height="2" Grid.Row="1" VerticalAlignment="Stretch" Width="250"/> 
                                <TextBlock Foreground="#FF333333" FontWeight="Normal" FontSize="14" FontFamily="Segoe UI" Padding="12,0,0,0" Grid.Row="2" Text="{Binding}"><Run Text="Drop status : "/></TextBlock> 
                                <TextBlock Grid.Column="1" Foreground="#FF333333" FontWeight="Normal" FontSize="14" FontFamily="Segoe UI" Margin="-158,0,0,0" Grid.Row="2" Text="{Binding DragStatus}"/> 
                            </Grid> 
                        </Border> 
                    </DataTemplate> 
                </Setter.Value> 
            </Setter> 
            <Setter Property="Background" Value="Transparent"/> 
            <Setter Property="BorderBrush" Value="Gray"/> 
            <Setter Property="BorderThickness" Value="1"/> 
            <Setter Property="FontSize" Value="12"/> 
            <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/> 
            <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/> 
            <Setter Property="ScrollViewer.PanningMode" Value="Both"/> 
            <Setter Property="ScrollViewer.PanningRatio" Value="1"/> 
            <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/> 
            <Setter Property="Template"> 
                <Setter.Value> 
                    <ControlTemplate TargetType="{x:Type syncfusion:SfDataGrid}"> 
                        <Grid SnapsToDevicePixels="True"> 
                            <Grid.RowDefinitions> 
                                <RowDefinition Height="Auto"/> 
                                <RowDefinition Height="*"/> 
                            </Grid.RowDefinitions> 
                            <VisualStateManager.VisualStateGroups> 
                                <VisualStateGroup x:Name="CommonStates"> 
                                    <VisualState x:Name="Normal"/> 
                                    <VisualState x:Name="Busy"> 
                                        <Storyboard> 
                                            <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="IsBusyIndicatorShowing" Storyboard.TargetName="PART_BusyDecorator"> 
                                                <DiscreteBooleanKeyFrame KeyTime="0" Value="True"/> 
                                            </BooleanAnimationUsingKeyFrames> 
                                        </Storyboard> 
                                    </VisualState> 
                                </VisualStateGroup> 
                            </VisualStateManager.VisualStateGroups> 
                            <Border Grid.Row="0" SnapsToDevicePixels="True"> 
                                <Border.Visibility> 
                                    <Binding Path="ShowGroupDropArea" RelativeSource="{RelativeSource TemplatedParent}"> 
                                        <Binding.Converter> 
                                            <syncfusion:BoolToVisiblityConverter/> 
                                        </Binding.Converter> 
                                    </Binding> 
                                </Border.Visibility> 
                                <syncfusion:GroupDropArea x:Name="PART_GroupDropArea" SnapsToDevicePixels="True"/> 
                            </Border> 
                            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Row="1" SnapsToDevicePixels="True"> 
                                <ScrollViewer x:Name="PART_ScrollViewer" CanContentScroll="True" FlowDirection="{TemplateBinding FlowDirection}" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsTabStop="False" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" PanningMode="{TemplateBinding ScrollViewer.PanningMode}" PanningRatio="{TemplateBinding ScrollViewer.PanningRatio}" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"> 
                                    <syncfusion:VisualContainer x:Name="PART_VisualContainer" AllowFixedGroupCaptions="False" Background="Transparent" CanHorizontallyScroll="True" ColumnCount="0" CanVerticallyScroll="True" FrozenRows="0" FrozenColumns="0" FooterColumns="0" FooterRows="0" HorizontalPixelScroll="True" HorizontalPadding="0" RowsGenerator="{x:Null}" RowCount="0" ScrollOwner="{x:Null}" ScrollableOwner="{x:Null}" VerticalPixelScroll="True" VerticalPadding="0"> 
                                        <syncfusion:VisualContainer.RowHeightManager> 
                                            <syncfusion:RowHeightManager/> 
                                        </syncfusion:VisualContainer.RowHeightManager> 
                                       
                                    </syncfusion:VisualContainer> 
                                </ScrollViewer> 
                            </Border> 
                            <local:BusyIndicator x:Name="PART_BusyDecorator" 
                             Margin="5" 
                            VerticalAlignment="Center" 
                            AnimationType="Gear"/> 
                        </Grid> 
                    </ControlTemplate> 
                </Setter.Value> 
            </Setter> 
        </Style> 
 
public class BusyIndicator : SfBusyIndicator 
{ 
    public bool IsBusyIndicatorShowing 
    { 
        get { return (bool)GetValue(IsBusyIndicatorShowingProperty); } 
        set { SetValue(IsBusyIndicatorShowingProperty, value); } 
    } 
 
    public static readonly DependencyProperty IsBusyIndicatorShowingProperty = DependencyProperty.Register( 
        "IsBusyIndicatorShowing", 
        typeof(bool), 
        typeof(BusyIndicator), 
        new FrameworkPropertyMetadata(false, 
            FrameworkPropertyMetadataOptions.AffectsMeasure, OnIsBusyIndicatorShowingProeprtyChanged)); 
 
    private static void OnIsBusyIndicatorShowingProeprtyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) 
    { 
        var container = (BusyIndicator)d; 
        if ((bool)e.NewValue) 
        { 
            container.IsBusy = true; 
        } 
        else 
        { 
            container.IsBusy = false; 
        } 
    } 
} 
Please let us know if you need any further details on this. 
Regards, 
Farjana Parveen A 


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

Live Chat Icon For mobile
Live Chat Icon