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

SfDataGrid in ItemsControl

Hello, i want to add Datagrids depending on the number of referenced lists. To achieve this i added a SfDatagrid to a ItemsControl.ItemTemplate.

Unfortunatelly when the entries need more space than available there is no Scrollbar. It's because of the infinite height, but at design time i don't know the height. Is there a way to solve this smart with SfDataGrid (don't want to set height to window height in codebehind)?

Thanks.

Attachment: sfDatagrid_8d0443f8.zip

3 Replies

BR Balamurugan Rajaraman Syncfusion Team May 12, 2017 11:58 AM UTC

Hi Patrick 
 
Thank you for contact Syncfusion support. 
 
We have checked your query “SfDataGrid in ItemsControl”. We are not able to reproduce the reported issue, its working fine in our side. we have attached the tested sample for your reference. Could you please share your Current Syncfusion product version and kindly revert us by modifying the provide tested sample to reproduce the reported issue in our side. It will be greatly helpful for us to analyze further. 
 
You can able to get the tested sample from the below link 
 
Regards, 
Balamurugan R 



PA Paddy May 12, 2017 12:20 PM UTC

Hello, 

it doesn't work because i had "Auto" in the first Grid.Row. Changed to "*" and it worked.

Thanks




BR Balamurugan Rajaraman Syncfusion Team May 15, 2017 12:49 PM UTC

Hi Patrick 
 
We are sorry for the inconvenience caused. 
 
We have checked your query “Scroll bar is not available while the content is large”. You can able resolve your requirement by loading the ItemControl in to a ScrollViewer.  
 
<ScrollViewer > 
        <Grid> 
        
        <Grid.RowDefinitions> 
            <RowDefinition Height="Auto"/> 
            <RowDefinition Height="*"/> 
        </Grid.RowDefinitions> 
       
            <ItemsControl> 
 
.  .   . 
           </ItemsControl> 
        </Grid> 
</ScrollViewer > 
 
 
We have modified the provided sample  and attached that sample for your reference you can able to download it from the below link 
 
 
Regards, 
Balamurugan R 


Loader.
Up arrow icon