Telerik built in feature detection with Modernizr

1 Answer 135 Views
UI for ASP.NET AJAX in ASP.NET MVC
RainMaker
Top achievements
Rank 1
RainMaker asked on 26 Jan 2022, 05:53 PM

My team is using Telerik.UI.for.AspNet.Ajax.Net45 v 2020.3.1021. Due to having some clients on unsupported browsers, we need to redirect them to an older page that is compatible for them.

Do you offer any built-in functionality to determine if a Telerik control on a page is supported in the user's browser?

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 26 Jan 2022, 07:44 PM

Hello,

You can use the Telerik static client-side library in order to determine the browser used by the client and decide the further actions depending on that:

https://docs.telerik.com/devtools/aspnet-ajax/shared-utilities/telerik-static-client-library

Regards,
Vessy
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/.

RainMaker
Top achievements
Rank 1
commented on 26 Jan 2022, 08:06 PM

We've looked at the static client library, but it's not quite what we're looking for. As an example, we're using RadSearchBox on a page and wondering if we can use some telerik js ($telerik or something else) for "RadSearchBox is not supported on this user's browser".
RainMaker
Top achievements
Rank 1
commented on 27 Jan 2022, 10:40 PM

Hi Vessy,

We still have not satisfied our needs on this issue. While the static client library has feature detection helpers, we still don't know what we're looking for specifically. We need to know what specific features the various Rad controls need on a per control basis. Currently we are working with RadSearchBox, but we will have this need for other controls in the future as well.

We're really looking for some Javascript similar to:

Telerik.RadSearchbox.Supports(Telerik.Web.Browser)

Javascript is preferred, but we could also satisfy our needs with a similar server-side implementation from the Telerik library.

If neither of these are available, are there docs that list each Rad controls' needed browser features, for newer and older Telerik packages? We have seen the docs for the newest package general browser support, but that page notes that all features may not be supported in all browsers. We are looking for the finer details on what browser features are needed for each Rad control for best user experience.

Thank you for your time.

Vessy
Telerik team
commented on 31 Jan 2022, 05:26 PM

Hello,

All browser versions supported by the controls form the UI for ASP.NET AJAX suite are listed in the following article, so you can make your browser check depending on them (IE8 is not supported as of R1 2017):

https://www.telerik.com/aspnet-ajax/tech-sheets/browser-support

For example, you can have a similar logic:

            function pageLoad() {
                if ($telerik.isIE) {
                    if ($telerik.quirksMode || $telerik.isIE6 || $telerik.isIE7 || $telerik.isIE8) {
                        alert("The used browser version is not supported.")
                    }
                }
            }

 

 

 

Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
RainMaker
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or