Telerik Forums
UI for Blazor Forum
1 answer
741 views

Hello,

Is it possible to disable keyboard input, and display the DateTimePicker when the input area is clicked instead?

Thanks!

Marin Bratanov
Telerik team
 answered on 20 Jan 2021
1 answer
151 views

Hello,

This example from ASP.NET AJAX (https://demos.telerik.com/aspnet-ajax/scheduler/mobile-examples/overview/default.aspx?name=overview) displays days as "Mon", "Tues" etc, whereas Blazor's Scheduler displays "Monday", "Tuesday" etc. Is there a way to abbreviate the days of week for Blazor Scheduler? This helps to prevent overflow on smaller screens.

Thanks!

Marin Bratanov
Telerik team
 answered on 20 Jan 2021
1 answer
1.0K+ views

Is there some way to change a button to have an animated spinning gif after clicking it invokes either a data retrieval or does an update?  Something like this (with the boolean as a property in code-behind)?

<TelerikButton OnClick="@(args => NameOfFunction(param1, param2, param))">Retrieve
<template>
    @if(IsSaving == false)
    {
        //Leave button as is
         
    }
    else
    {
        //Put animated spinning gif
    }
</template>
</TelerikButton>
Svetoslav Dimitrov
Telerik team
 answered on 20 Jan 2021
3 answers
306 views
Hi.
We made some form where data always updates by time period. Can we switch animation to Off for charts?
Svetoslav Dimitrov
Telerik team
 answered on 20 Jan 2021
0 answers
661 views

Hello, I get this error on Asp Net 5 WebApi:

Access to XMLHttpRequest at 'http://localhost:5000/Api/curvapeso/upload/azienda/716' from origin 'https://localhost:44344' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

And the endpoint (Upload() action below) isn't reached.

This is my CORS configuration:

            services.AddCors(options =>
            {
                options.AddPolicy("CorsPolicy",
                    builder =>
                    {
                        builder.AllowAnyOrigin()
                            .AllowAnyMethod()
                            .AllowAnyHeader();
 
                        if (string.IsNullOrEmpty(origin))
                        {
                            builder.AllowAnyOrigin();
                        }
                        else
                        {
                            builder.WithOrigins(origin);
                        }
 
                    });
            });
 
...
app.UseCors("CorsPolicy");

 

This is my upload endpoint, and Options handler (see in this post and suggested by the docs):

[HttpOptions("upload/azienda/{idazienda}")]
[AllowAnonymous]
public static IActionResult FileOptions(HttpRequest req)
{
    string originSite = req.Headers["Origin"];
    req.HttpContext.Response.Headers.Add("Access-Control-Allow-Origin", originSite);
    req.HttpContext.Response.Headers.Add("Access-Control-Allow-Methods", "POST, GET, OPTIONS");
    req.HttpContext.Response.Headers.Add("Access-Control-Allow-Credentials", "true");
    req.HttpContext.Response.Headers.Add("Access-Control-Allow-Headers", "X-PINGOTHER, Content-Type");
    return new NoContentResult();
}
 
[HttpPost("upload/azienda/{idazienda}")]
public async Task<IActionResult> Upload(IEnumerable<IFormFile> files, int idazienda, HttpRequest req)
{
    string originSite = req.Headers["Origin"];
    req.HttpContext.Response.Headers.Add("Access-Control-Allow-Origin", originSite);
    req.HttpContext.Response.Headers.Add("Access-Control-Allow-Credentials", "true");
    ....
 }

 

has anyone already had this problem? How to solve it?

Thank you very much

 

 

 

 

 

 

 

 

 

Andrea
Top achievements
Rank 1
Veteran
 asked on 19 Jan 2021
1 answer
1.1K+ views

The default selected color for my switch based on my theme is a reddish color.

I need to occasionally change that  on a particular page (blue) .  I do not want to change it for every page.

How can I target an individual switch element through css or property.

 

 

Any help would be appreciated.

 

Svetoslav Dimitrov
Telerik team
 answered on 19 Jan 2021
1 answer
704 views

 

We have an application (razorpages) that is currently using Telerik UI ASP.NET Core. We would successively like to upgrade it to be running Blazor Server-side.
Razorpages and Blazor is no problem mixing, but is it possible to both run Telerik UI ASP.NET Core and UI for Blazor within the same app but use different namespace imports within the pages?

I have failed installing both packages from nuget due to different versions in dependency-packages.

Marin Bratanov
Telerik team
 answered on 18 Jan 2021
1 answer
3.1K+ views
hi...would appreciate guidance on how to set max PopupHeight such that it will be auto until it hits a threshold px level of e.g. 200px after which the dropdown 'fixes' at that max height and becomes scrollable? many thanks
Nadezhda Tacheva
Telerik team
 answered on 15 Jan 2021
3 answers
736 views

While I've been able to customize the Sass-based themes using variables (https://docs.telerik.com/kendo-ui/styles-and-layout/sass-themes#using-variables), there are some customizations I've only been able to do by modifying the Kendo css classes.  For example, to remove the border from the grid pager, I had to override the .k-pager-wrap and .k-link classes:

.k-pager-wrap {
    .k-link {
        border-style: none
    }
}

The alternative is to create custom css classes:

<TelerikGrid Class="custom-class" />

However, I'd need to know the DOM structure to customize the pager element for that grid:

.custom-class {
    .div[data-role="pager"] {
        border-style: none
    }
}

My question is, how reliable is it to customize Kendo css classes or DOM elements?  Are there any guarantees that these css classes will not change and break our application with new Telerik releases?  If this is not a reliable approach, what are your recommendations?

Marin Bratanov
Telerik team
 answered on 15 Jan 2021
1 answer
209 views

I'm in the same situation as the OP in this post: https://www.telerik.com/forums/how-do-you-always-edit-series-when-editing-a-recurring-appointment


In my case, I'm working with with the Blazor Scheduler Component. How can I disable the prompt and automatically select "Edit the series"? Or at least "disable" the "Edit this occurrence" button when updating/deleting an appointment? 

Marin Bratanov
Telerik team
 answered on 14 Jan 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?