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>
The virtual grid breaks when there are more than 3.000.000 records in TotalCount.
It overlays the actual Grid with extra height.
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!
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!
Hello,
Is it possible to disable keyboard input, and display the DateTimePicker when the input area is clicked instead?
Thanks!
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!
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
>
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