Telerik Forums
UI for Blazor Forum
1 answer
560 views

I did a bit of searching and couldn't find this in the documentation. Is there a way to change the text in the ComboBox dropdown when there is no data in the source collection? 

 

Thanks,

Andrew

Marin Bratanov
Telerik team
 answered on 23 Jul 2020
2 answers
1.2K+ views
I have implemented the drawer following your sample to use the drawer as navigation in the main site layout.  I have also used the template to create hierarchical menu.  I believe since I am using the template, the @Body will not be set for the url content?  Do you have a sample which uses hierarchical template and is able to navigate to a Razor Component.  I have tried using a RenderFragment on each drawer item and bind that value in the content field.  It seems to be rather slow. Also, when I render the component this way it seems any layout template I have specified at the component level is ignored. Do you have any suggestions?  Thank you in advance.
Will
Top achievements
Rank 1
 answered on 23 Jul 2020
1 answer
94 views

I've got a problem with the treeview.

The child element in is not fully visible in that container (see attached picture).

My problem is that the child element is wider than the parent element. In my css file there is an overflow-x property and the child element does not detect it as an element. The scrollbar seems to be attached to the parent element and not to the child elements. 

Marin Bratanov
Telerik team
 answered on 23 Jul 2020
3 answers
1.3K+ views

Hi,

I want to allow the input of a decimal number with exactly two decimal places in one column and in another column a number with three decimal places. How can I implement this in a GridColumn? DataAnnotations does not work.

[RegularExpression(@"^\d+\.\d{0,2}$")]
[Range(0, 9999999999999999.99)]

Thanks in advance

Marin Bratanov
Telerik team
 answered on 17 Jul 2020
1 answer
314 views

I am attempting to populate some "dummy" data into a Scheduler component by iterating over a list of Entries and adding each to the Scheduler's Data, like so:

 

foreach (ScheduleEntry entry in DummyDataForDemo)
{
    await TimesheetService.AddOrUpdateEntryAsync(entry);

    EntryUpdated(entry);
}

EntryUpdated(entry) calls ScheduleEntries.Add(entry), where ScheduleEntries is the datasource of my Scheduler component.

 

When EntryUpdated is called from the Scheduler's OnEdit callback, the Scheduler updates properly, and the ScheduleEntry is shown correctly. However, in this iterator, the Scheduler does *not* properly populate newly added entries. At most, I've seen two (of twenty) entries properly displayed until I refresh the page.

How can I accomplish this?

1: I've tried calling StateHasChanged() after iterating over DummyDateForDemo.

2: I've tried making ScheduleEntries an ObservableCollection. This doesn't *seem* to be supported anyway, since documentation mentions "Observable Data" for e.g. Grids, but not Schedulers.

3. I've also tried the trick found at https://feedback.telerik.com/blazor/1409112-the-grid-does-not-update-on-data-source-change but that doesn't work because I can't set Scheduler.Data outside of the component.

 

Please note that all other code is executing correctly - the ScheduleEntry objects *are* being added to the datasource, and they're being properly saved to the database.

 

Thanks,

Andrew

 


Marin Bratanov
Telerik team
 answered on 16 Jul 2020
1 answer
333 views

I've a weird issue with grid and virtual scrolling. It seems that if you scroll with the scrollbar all goes fine, but if you use flywheel to scroll to the top, some of the first items are not loaded and the placeholders are shown instead, the scrollbar has cursor in top position.

I can see from the debug that the last onread is made with skip value equal to the number of missing items.

Svetoslav Dimitrov
Telerik team
 answered on 16 Jul 2020
3 answers
431 views
Hello 
i was looking for a way to keep menu open if its clicked not like staying open as long as its hovered i need it to stay open as long as its focused 
Marin Bratanov
Telerik team
 answered on 14 Jul 2020
1 answer
600 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
755 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
667 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
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?