Telerik Forums
UI for Blazor Forum
1 answer
657 views

Hi,

will there be a focusout-event in the future? Similar to the focusout-event of html-input...

I want to do something after leaving a row.

Lots of greetings

Marin Bratanov
Telerik team
 answered on 14 Jul 2020
3 answers
852 views

I have a new project that requires real-time data updates on a grid for a team of users to collaborate within the application.

It seems SignalR is a good candidate for this project. I am new to programming with SignalR. Since I am familiar with .NET 4.x framework and MVC, I initially was thinking of implementing the project as an ASP.NET Core 3.0 MVC with Telerik.UI for Asp.Net Core since it has Grid Binding to SignalR.

However, with the release of Blazor, I am considering using Blazor and Telerik.UI.for.Blazor. But I don't see any samples or documentations to use with SignalR in Telerik.UI. 

My questions:

1. Given that my project requires SignalR for real-time data updates, should I choose the stable approach of ASP.NET Core with MVC and the more-documented Telerik.UI for asp.net Core grid ? or is it possible to use Blazor / SignalR / Telerik.UI (if such thing exists) ? What are the pros vs. cons of those 2 choices?

2. Where can I find tutorials on building:
1) ASP.NET Core 3.0 MVC / SignalR / Telerik for ASP.NET Core;
2) ASP.NET Core Blazor / SignalR / Telerik for Blazor

 

Marin Bratanov
Telerik team
 answered on 13 Jul 2020
5 answers
744 views

Hello,

I have blazor grid inside my custom component. I need to call InvokeAsync method on my EventCallback passed to this component. When I do that from SelectedItemsChanged event app gets crashed without any exception. I read the docs about async operations in this event (https://docs.telerik.com/blazor-ui/components/grid/selection/overview#asynchronous-operations), but don't know how to workaround this.

 

Marin Bratanov
Telerik team
 answered on 10 Jul 2020
1 answer
160 views

Hey all,
I'm working on a wrapper for the KendoUI color picker to allow users more control over the colors of how their data is being represented.
So the overall flow will be, given a dynamic list of data, create a color picker for each one, passing an object reference for that specific item. Then, upon a color being picked, call a function on that object to update it's color property with the selection.
My problem being that I can't figure out how to get the object reference into the color changed event. I thought using JS protoyped functions would work (because I need each color picker to have it's own scope so it knows which object's function to call) but 'this' inside of ColorPickerWidget is scoped to the window instead of to ColorPickerWidget. 

Any suggestions would be appreciated!

JS functions:
function ColorPickerWidget(bindTo, objRef) {
    var objectRef = objRef;
    this.create(bindTo);
};

ColorPickerWidget.prototype.create = function(bindTo) {
    $(bindto).kendoColorPicker({
        value: "#ffffff",
        buttons: false,
        select: this.selectColor
    });
}

ColorPickerWidget.prototype.selectColor = function(e) {
    this.objectRef.invokeMethodAsync("ChangeColor", e.value);
}

 

.NET Functions:
protected async override Task OnInitializedAsync()
        {
            await JsRuntime.InvokeVoidAsync(identifier: "ColorPickerWidget", elRef, DotNetObjectReference.Create(this));
        }

        [JSInvokable]
        public void ChangeColor(string color)
        {
            Color = color;
            ColorChanged.InvokeAsync(color);
        }

Marin Bratanov
Telerik team
 answered on 10 Jul 2020
8 answers
1.1K+ views
I would like to have the upload component but change the text on the button or, even better, create a Telerik button and call the upload functionality. That way, the button could have theming, etc. and only the upload would need to be called. Any pointers on how I can accomplish either task (especially calling from a button)?
Alan
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 08 Jul 2020
1 answer
854 views

hello,

i had an issue with grid scroll because on some states after user has scrolled the grid  i want to bring   back up the scrolll and show first datas 
also my grid is virtualized. is there any way to do this ?

Svetoslav Dimitrov
Telerik team
 answered on 07 Jul 2020
3 answers
2.5K+ views

Hi
I am just learning/testing with Blazor and have created a standard Blazor Server App, using the default template built into VS 2019.  Is there a simple way I can convert this to a Telerik Blazor app?  For exampe copy over some DLLs or maybe install a nuget package?

Or do I have to start from scratch and use the Telerik Blazor built into VS Studio?

Manythanks in advance


Marin Bratanov
Telerik team
 answered on 07 Jul 2020
2 answers
145 views

Hi,

I have a calendar control with initial date. It could be "Today" or any other date. The Calendar works fine but the initial date is not visually selected. If I click on any date it's get selected and displayed in "red" but I need it selected initially without user intervention.

                                <TelerikCalendar SelectionMode="@CalendarSelectionMode.Single"
                                                 ValueChanged="@( (DateTime d) => OnBeginDateChangeHandlerAsync(d) )"
                                                 Min="@beginmin" Max="@beginmax"
                                                 @bind-Date="@begindate">
                                </TelerikCalendar>

@code {
    protected DateTime begindate { get; set; } = DateTime.Now.AddDays(-8).Date;

}

Thanks.

Andrey
Top achievements
Rank 1
Veteran
 answered on 06 Jul 2020
1 answer
473 views

Hi,

Is there any way to disable all weekends on Calendar control? Yes, I could create a list of disable dates but it will be a huge list. I just curious if there is some setting to do that.

Thanks.

 

Svetoslav Dimitrov
Telerik team
 answered on 06 Jul 2020
2 answers
1.7K+ views

I've used your example code to adjust the font size on a grid and been using rowheight to adjust the row height but there appears to be some limit as too how small you can make the row height.

I've attached a screen shot which shows there is a lot of space in the row above and below the small text, can this be reduced?

Cheers

Steve

Steve
Top achievements
Rank 1
Veteran
 answered on 04 Jul 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?