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

SfNavigationDrawer and SfDataGrid doesnt work in UWP

Code below works fine in Android but in UWP, it wont display the sfDataGrid at all, when I remove sfNavigator, sfDataGrid is just binded and filled fine. why It is not displayed in UWP? you advise to add always HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" for stacklayout, I tried that as as well but it doesnt help.

...
Text="{Binding SearchText, Mode=TwoWay}"
SuggestionItemDataTemplate="{StaticResource SuggestionItemTemplate}"
Placeholder="Search Items here!"
ShowSearchButton="False"
SearchBackgroundColor="White"
SearchTextColor = "Black"
SearchBorderColor = "Yellow"
SuggestionBackgroundColor="White"
SearchCommand="{Binding FindItems}"
Suggestions="{Binding Items, Mode=TwoWay}"
/>
AutoGenerateColumns="False"
AllowSorting="True"
IsEnabled="True"
ColumnSizer="Star"
AllowSwiping="True"
MaxSwipeOffset="180"
GridTapped="dataGrid_GridTapped"
SelectionMode="{Binding GridSelectionMode}"
SelectionChanged="SuperSetSelectionChanged"
AutoExpandGroups="True"
AllowGroupExpandCollapse="True"
RowHeight="100" ItemsSource="{Binding Items}"
SelectedItem="{Binding SelectedItem, Mode=OneWayToSource}" VerticalOptions="FillAndExpand">
....

5 Replies

PK Pavendhan Kumar Syncfusion Team December 23, 2016 10:10 AM UTC

Hi Emil,

Thank you for contacting Syncfusion support.

The details(code snippet) is not enough to reproduce the reported issues at our end. So please share sample project to reproduce the above mentioned issue. That would help us to work inline with your requirement.

Regards,
Pavendhan K.



EM Emil December 23, 2016 12:05 PM UTC

Hi,

Sorry, i just put the code again. this should be sufficient I think. If not, I will try to create a small test project. please let me know

<ContentView.Content>
    <navigation:SfNavigationDrawer x:Name="navigationDrawer" Position="Right" Transition="SlideOnTop" DrawerWidth="300">
      <navigation:SfNavigationDrawer.DrawerHeaderView>
        <Grid x:Name="headerLayout" BackgroundColor="#1aa1d6" >
          <Label x:Name="header"  Text="FILTERS" FontSize="14" TextColor="White"  VerticalTextAlignment="Center" HorizontalTextAlignment="Center"  />
        </Grid>
      </navigation:SfNavigationDrawer.DrawerHeaderView>
      <navigation:SfNavigationDrawer.DrawerContentView>
        <StackLayout Orientation="Vertical" BackgroundColor="White">
        ...
        </StackLayout>
      </navigation:SfNavigationDrawer.DrawerContentView>
      <navigation:SfNavigationDrawer.ContentView>
        <StackLayout Orientation="Vertical">
          <xlabs:AutoCompleteView x:Name="MyAutoComplete"
                    Text="{Binding SearchText, Mode=TwoWay}"
                    SuggestionItemDataTemplate="{StaticResource SuggestionItemTemplate}"
                    Placeholder="Search Items here!"
                    ShowSearchButton="False"
                   SearchBackgroundColor="White"
                              SearchTextColor = "Black"
                              SearchBorderColor = "Yellow"
                              SuggestionBackgroundColor="White"
                    SearchCommand="{Binding FindItems}"
                    Suggestions="{Binding Items, Mode=TwoWay}"
      />
          <sfgrid:SfDataGrid  ScrollingMode="PixelLine"  x:Name="listItems"
                        AutoGenerateColumns="False"
                        AllowSorting="True"
                           IsEnabled="True"
                        ColumnSizer="Star"
                        AllowSwiping="True"
                        MaxSwipeOffset="180"
                        GridTapped="dataGrid_GridTapped"
                        SelectionMode="{Binding GridSelectionMode}"
                              SelectionChanged="SuperSetSelectionChanged"
                         AutoExpandGroups="True"
                          AllowGroupExpandCollapse="True"
                        RowHeight="100" ItemsSource="{Binding Items}"
             SelectedItem="{Binding SelectedItem, Mode=OneWayToSource}"  VerticalOptions="FillAndExpand">
 
 ....
 
 
     </navigation:SfNavigationDrawer>
    
  </ContentView.Content>


PK Pavendhan Kumar Syncfusion Team December 27, 2016 12:04 PM UTC

Hi Emil,

Thank you for your update. We have tried your code snippet but unable to reproduce the reported issue. If you provide sample project to reproduce the reported issue that would be great to find the root cause for the problem.

Regards,
Pavendhan K.




EM Emil January 5, 2017 11:54 AM UTC

I was using 14.4.0.15 version and upgraded to 14.4.0.20 version. It looks like on this version I am not able to reproduce the error as well.  Do you have a page where you publish the changesets between version? I would like to always see these before I upgrade to a newer version


PK Pavendhan Kumar Syncfusion Team January 6, 2017 10:46 AM UTC

Hi Emil,

Thank you for your update. During the time of every release we will publish release notes where you can find what are the bugs were fixed and new features were included. The link for the same is given below please refer

Link: https://help.syncfusion.com/xamarin/release-notes/v14.4.0.20?type=all#sfnavigationdrawer 

Please let us know if you have any concern on this.

Regards,
Pavendhan K.
 


Loader.
Live Chat Icon For mobile
Up arrow icon