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

Components with Javascript turned off

1 Answer 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 20 Mar 2020, 12:48 PM

Will a Visual Studio created project using the Telerik extensions still require javascript to run in the browser. I'm trying this out with the server-hosted Blazor project and it does not seem to carry out the button action when Javascript is turned off. The following code is what is running on the Index.razor page in the generated app.

--------------------------------------------------------------------------------------------------------------------------------------------------------

<TelerikButton OnClick="@SayHelloHandler" Primary="true">Say Hello</TelerikButton>

<br />

@helloString

@code {
    MarkupString helloString;

    void SayHelloHandler()
    {
        string msg = string.Format("Hello from <strong>Telerik Blazor</strong> at {0}.<br /> Now you can use C# to write front-end!", DateTime.Now);
        helloString = new MarkupString(msg);
    }

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 20 Mar 2020, 02:33 PM

Hello Bill,

You can't use Blazor without JS, the framework itself relies on it. Thus, our components rely on it as well.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Tags
General Discussions
Asked by
Bill
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or