Declined
Last Updated: 31 Aug 2020 15:30 by ADMIN
JeffSM
Created on: 26 Aug 2020 22:47
Category: UI for ASP.NET AJAX
Type: Feature Request
0
FulHD, 4K and so on to DeviceScreenSize

I suggest update Device Screen Size for 

Telerik.Web.Device.Detection

 


using System;

namespace Telerik.Web.Device.Detection
{
    /// <summary>
    /// The device screen size based on the its dimensions in CSS pixels
    /// </summary>
    /// <remarks>
    ///The default ranges are:
    /// Small (to 600) CSS pixels
    /// Medium (601-1024) CSS pixels
    /// Large (1025 - 1366) CSS pixels
    /// ExtraLarge (over 1366) CSS pixels
    /// FullHD (over 1920) CSS pixels
    /// UHD4K = 5 // 3840
    /// UHD8K = 6 // 7680
    /// UHD10K = 7 // 10240
    /// </remarks>
    public enum DeviceScreenSize
    {
        Small = 0, // 0-600
        Medium = 1, // 601-1024
        Large = 2, // 1025 - 1366
        ExtraLarge = 3 // over 1366
        FullHD = 4 // 1920
        UHD4K = 5 // 3840
        UHD8K = 6 // 7680
        UHD10K = 7 // 10240

    }
}

Best,

 

Jeff

1 comment
ADMIN
Peter Milchev
Posted on: 31 Aug 2020 15:30

Hello Jeff,

The Device Detection has a predefined screen sizes for known mobile devices. The way it recognizes the device is via the User Agent string:

This means all the FHD, 4k, and above resolutions are not applicable and the ExtraLarge option is a good fit for that. Also, you can tweak the ranges if needed:

With that said, I am declining this feature request because the User Agent string does not give information on the screen size when a Desktop browser is used, where such resolutions are available.

Regards,
Peter Milchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.