Filtering and Grouping does not work in AppWindows

I have an app that utilizes AppWindows. Unfortunately, there seems to be a bug in Syncfuison DataGrid where the filtering menu and drag and drop show the controls in the main window and not on AppWindows which renders the capability useless. I have contacted support but they don't seem to understand what I mean by AppWindows!

Here are the codes:

                         var PatientsAppWindow = await AppWindow.TryCreateAsync();
                        Frame appWindowContentFrame2 = new Frame();
                        appWindowContentFrame2.Navigate(typeof(PatientPage), Parameter);
                        ElementCompositionPreview.SetAppWindowContent(PatientsAppWindow, appWindowContentFrame2);
                        var PatNum = Parameter.ToString().Split("=")[1];
                        PatientsAppWindow.Title = new Converters.DataTypeValueConverter().Convert(PatNum, parameter: "PatNum").ToString();
                        await PatientsAppWindow.TryShowAsync();

<syncfusion:SfDataGrid Name="DataGrid" x:FieldModifier="public" VerticalAlignment="Stretch" BorderThickness="0"
                                                   AutoGenerateColumns="False" Padding="0" Margin="0" RowHeight="28"
                                                   SelectionMode="Single" SelectionUnit="Row" AllowGrouping="True" AllowEditing="False"
                                                   AllowResizingColumns="True" AllowFiltering="True" AllowDraggingColumns="True"
                                                   ColumnSizer="Star" ShowRowHeader="True" ItemsSource="{Binding DATAs}"
                                                   QueryRowHeight="DataGrid_QueryRowHeight">
                                <syncfusion:SfDataGrid.Transitions>
                                    <TransitionCollection>
                                        <ContentThemeTransition/>
                                    </TransitionCollection>
                                </syncfusion:SfDataGrid.Transitions>
                                <syncfusion:SfDataGrid.Columns>
                                    <syncfusion:GridDateTimeColumn DisplayBinding="{Binding Date}"/>
                                    <syncfusion:GridTextColumn DisplayBinding="{Binding ProvNum}"/>
                                    <syncfusion:GridNumericColumn DisplayBinding="{Binding Fees}"/>
                                </syncfusion:SfDataGrid.Columns>
                                <syncfusion:SfDataGrid.TableSummaryRows>
                                    <syncfusion:GridTableSummaryRow ShowSummaryInRow="False" CalculationUnit="AllRows" Position="Bottom">
                                        <syncfusion:GridSummaryRow.SummaryColumns>
                                            <syncfusion:GridSummaryColumn Name="PriceAmount"
                                            Format="'Total UnitPrice : {Sum:c}'"
                                            MappingName="UnitPrice"
                                            SummaryType="DoubleAggregate" />
                                            <syncfusion:GridSummaryColumn Name="ProductCount"
                                            Format="'Total Product Count : {Count:d}'"
                                            MappingName="ProductName"
                                            SummaryType="CountAggregate" />
                                        </syncfusion:GridSummaryRow.SummaryColumns>
                                    </syncfusion:GridTableSummaryRow>
                                </syncfusion:SfDataGrid.TableSummaryRows>
                                    <syncfusion:SfDataGrid.ContextFlyout>
                                    <MenuFlyout x:Name="DataGridMenu" x:FieldModifier="public" Opening="DataGridMenuFlyout_Opening"/>
                                </syncfusion:SfDataGrid.ContextFlyout>
                            </syncfusion:SfDataGrid>



Attachment: Syncfusion_Bug.mov_7d65c337.zip

6 Replies 1 reply marked as answer

MA Mohanram Anbukkarasu Syncfusion Team February 25, 2021 01:09 PM UTC

Hi Novin, 

Thanks for contacting Syncfusion support.  

We have checked the provided code snippets and video illustration. We are little unclear about where you have placed the provided code in your application. If possible please share a simple sample with SfDataGrid to replicate the reported issue in our end. It will be more helpful for us to find the exact cause for the issue and to provide a prompt solution at earlier.  

Regards, 
Mohanram A. 



NO Novin February 25, 2021 03:21 PM UTC

The SfDataGrid is placed in the PatientPage.xaml in a Grid.


MA Mohanram Anbukkarasu Syncfusion Team February 26, 2021 11:40 AM UTC

Hi Novin, 

Thanks for the update.  

We have prepared a sample using AppWindow using the code snippet you have provided. We are able to open the filter popup within the same window as in the below given image.  

 
The sample we have prepared is available in the following link for your reference. 


Please have a look at this sample and revert to us with details if you are facing issue still in this sample or we have missed any customization you have done in your application.  

Regards, 
Mohanram A. 



NO Novin February 27, 2021 03:24 PM UTC

Can you send an image of the whole screen showing the AppWindow?

I built the solution and it does not behave as intended. The Filter menu shows after three clicks or so but is out of bounds and first couple of times renders on the Main Window and not the AppWindow.


MA Mohanram Anbukkarasu Syncfusion Team March 1, 2021 02:19 PM UTC

Hi Novin, 
  
Thanks for the update. 

We are currently checking the cause for this. We will update with further details on March 3, 2021. We appreciate your patience until then. 

Regards,  
Mohanram A. 



MA Mohanram Anbukkarasu Syncfusion Team March 3, 2021 01:19 PM UTC

Hi Novin, 

Thanks for your patience.  

We have analyzed  the reported scenario. But unfortunately we are unable to find the exact cause for the issue as it occurs only in the AppWindow. We have checked the documentations of AppWindow and found that it is currently in preview and some platform and framework components are known to not work with AppWindow. We suspect that this may also cause those filter and column drag popups to not work with AppWindow.  

Please let us know if you have any concerns in this.  

Regards, 
Mohanram A. 


Marked as answer
Loader.
Up arrow icon