This is a migrated thread and some comments may be shown as answers.

DataGridView Content Overflow Border

3 Answers 156 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
Derz
Top achievements
Rank 1
Derz asked on 19 Feb 2018, 01:36 PM

Hi There,

I have been playing around with the datagridview in a UWP app I have been creating and noticed when I create a dummy collection of > 50000 items (or so) and bind it to the datagrid, the contents overflow the borders (see picture attached). Is there something I can do to prevent this behaviour?

Side question... is there any reason why there is no selectionmode=Extended for this version of the datagrid view? I've done some extensive searching and found nothing and failed miserably trying to achieve a shift click/ctrl click multiple item selection method myself.

Any assistance would be greatly appreciate.

Cheers,

3 Answers, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 22 Feb 2018, 08:10 AM
Hello, Derz,

I tried reproducing the behavior you are observing but was not able to in a really simple setup from my end. Can you please check the sample project I have attached and update me how it differs from your setup. Do you observe the behavior with a simple RadDataGrid or the layout system is more complex at your end and you have some external elements which you use as borders? As for your second question, the RadDataGrid does not support Extended selection and the only available options are multiple and single selection modes.

Have a great rest of the week.

Regards,
Stefan Nenchev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Derz
Top achievements
Rank 1
answered on 23 Feb 2018, 10:58 AM

Hi Stefan,

You cant tell in that project you send me since the only element on that page is the grid, and its stretched all the way to the application border in that instance. If you wrap the datagrid in a grid (as if it was within a page) you will see what i am talking about, increase the items to 60,000 to ensure you see it, as at 50,000 it displays ok its when you go over that, I don't know the exact figure.

 

I modified the MainPage XAML to

 

<Grid Background="AliceBlue">
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="3*"></ColumnDefinition>
        <ColumnDefinition Width="3*"></ColumnDefinition>
        <ColumnDefinition Width="3*"></ColumnDefinition>
        <ColumnDefinition Width="3*"></ColumnDefinition>
        <ColumnDefinition Width="3*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
        <RowDefinition Height="3*"></RowDefinition>
        <RowDefinition Height="3*"></RowDefinition>
        <RowDefinition Height="3*"></RowDefinition>
        <RowDefinition Height="3*"></RowDefinition>
        <RowDefinition Height="3*"></RowDefinition>
        </Grid.RowDefinitions>
    <grid:RadDataGrid x:Name="DataGrid" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Grid.Column="1" Grid.RowSpan="3" Grid.ColumnSpan="3">

    </grid:RadDataGrid>
    </Grid>

 

That should allow you to see what I am talking about. I noticed though however after my post that it happens with the built in listview control aswell, so I reported the issue to MSDN and they confirmed it and forwarded it on. Who know's when it will be fixed though.

 

https://social.msdn.microsoft.com/Forums/windowsapps/en-US/74683608-763a-423a-b44f-2327fbec8744/uwp-listview-items-overflowing-container-bounds?forum=wpdevelop

 

Any particular reason why there is no extended selection option when other platforms have it for this control? any simple solutions for an implementation in code behind?

Cheers,

0
Stefan Nenchev
Telerik team
answered on 27 Feb 2018, 12:55 PM
Hi, Lachlan,

Thank you for the additional information. I was able to reproduce the behavior in the setup you have shown. Indeed, as the issue is reproducible with the default MS controls as well it seems related to the general layout mechanism of the Grid control(or probably some other host controls as well). Hopefully, Microsoft will consider the behavior as soon as possible so that a resolution is available. 

As for the selection, some of the more mature suites expose such extended selection. For the UWP platform we did not implement the feature and did not receive any feature requests for this functionality up to now. With this in mind, I have logged the behavior as a feature request so we can consider implementing it at some point. You can track its progress on the following link from our Ideas & Feedback portal - DataGrid: Add Extended selection mode. Please follow the item in order to subscribe for automatic notifications. In the meantime, the functionality can be partially achieved through a custom CellTap command. Please have a look at the attached sample. The example just shows the approach you can use and you can further optimize it for your scenario.

If you have any additional questions or concerns, do not hesitate to contact us.

Regards,
Stefan Nenchev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussion
Asked by
Derz
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Derz
Top achievements
Rank 1
Share this question
or