Telerik Forums
UI for Blazor Forum
3 answers
388 views

I just updated to telerik.ui.for.blazor.trial 2.21.0.  I was excited to find TelerikSplitter.

 

I am getting this error when I run my WebAssembly ASP.NET core hosted app:

Microsoft.JSInterop.JSException: Could not find 'TelerikBlazor.initSplitter' ('initSplitter' was undefined).

 

It does render correctly but dragging has no effect.  Am I doing something stupid? 

 

MainLayout:

<TelerikRootComponent>
         <TelerikSplitter>
            <SplitterPanes>
                <SplitterPane>
                    Left pane
                </SplitterPane>
                <SplitterPane>
                    Right Pane
                </SplitterPane>
            </SplitterPanes>
        </TelerikSplitter>
</TelerikRootComponent>

Scott
Top achievements
Rank 1
 answered on 20 Jan 2021
3 answers
92 views
Several of my shortcuts are failing
Marin Bratanov
Telerik team
 answered on 20 Jan 2021
9 answers
132 views

The virtual grid breaks when there are more than 3.000.000 records in TotalCount.

It overlays the actual Grid with extra height.

Marin Bratanov
Telerik team
 answered on 20 Jan 2021
6 answers
348 views

Hello,

Is there a "On Date Cell click" event? For example, based on this example from ASP.NET AJAX (https://demos.telerik.com/aspnet-ajax/scheduler/mobile-examples/overview/default.aspx?name=overview), on clicking a particular the Date Cell in month view, it gets highlighted. I would like to do more than modifying the css (e.g. highlighting) on click, and I'm wondering if such a functionality is available.

Thanks!

Marin Bratanov
Telerik team
 answered on 20 Jan 2021
2 answers
408 views

Hello,

Is it possible to scale the Calendar to fit the size of the screen and to have the font size, cell size etc scale responsively. As seen in the attached images, if I were to naively increase the width of the calendar to 100%:

1. The cells now have a gap in between them

2. The dates are no longer aligned to the days

Thanks!

Zhi Yuan
Top achievements
Rank 1
Veteran
 answered on 20 Jan 2021
1 answer
693 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
129 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
957 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
255 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
603 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
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?