Telerik Forums
UI for Blazor Forum
6 answers
687 views

Does anybody have an example of how to do this in the blazor grid?

If not,  does anybody have an example of a dropdownlist column template that show the text in the grid but stores the id in the list of items for the grid?

Thanks … Ed

 

Marin Bratanov
Telerik team
 answered on 08 Dec 2020
1 answer
1.2K+ views

Will Telerik Blazor components support this new functionality in the future?

https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.elementreferenceextensions.focusasync?view=aspnetcore-5.0#Microsoft_AspNetCore_Components_ElementReferenceExtensions_FocusAsync_Microsoft_AspNetCore_Components_ElementReference_

Set UI focus in Blazor apps
    
Blazor now has a FocusAsync convenience method on ElementReference for setting the UI focus on that element.

<button @onclick="() => textInput.FocusAsync()">Set focus</button><input @ref="textInput"/>

Svetoslav Dimitrov
Telerik team
 answered on 04 Dec 2020
2 answers
271 views

I am using a telerik tab control with a grid in one tab.  If you sort, filter, or page the grid; the state will be lost if you click into a tab and then back to the tab with the grid.  What's the proper way to save this state?

 

Thanks - Doug

Doug
Top achievements
Rank 1
Veteran
 answered on 03 Dec 2020
2 answers
174 views

Grid is using Incell edit mode.  Clicking on a cell brings the cell into focus but it's only on the second click that the OnRowClick event is firing. i.e. when the cell entered edit mode.

Is this expected behavior?

 

 

Bozhidar
Telerik team
 answered on 03 Dec 2020
1 answer
5.3K+ views
Do we have a replacement for Hyperlinkbutton in Blazor?
 
Svetoslav Dimitrov
Telerik team
 answered on 03 Dec 2020
4 answers
185 views

Keyboard selection only seems to match the first letter of the text.  Is there a setting to change this behavior?

I've confirmed this behavior on the Blazor UI DropDownList demo as well.  If you type in the state dropdown it just keeps changing the selection to the first state that begins with the last letter typed. 

Without the ability to use the keyboard it makes large dropdownlists unmanageable.

 

 

Marin Bratanov
Telerik team
 answered on 03 Dec 2020
4 answers
941 views

<TelerikNumericTextBox Min="0" Max="100" @bind-Value=@Model.HeadSkip  Id="header_skip"></TelerikNumericTextBox> 

After adding the Minimum and Maximum value it shows an error as below

 

The type arguments for method 'TypeInference.CreateTelerikNumericTextBox_0<T>(RenderTreeBuilder, int, int, T, int, T, int, string, int, T, int, EventCallback<T>, int, Expression<Func<T>>)' cannot be inferred from the usage. Try specifying the type arguments explicitly.

The binding value is of type short and I am trying to restrict the negative numbers in numeric textbox.

 
Anju
Top achievements
Rank 2
Veteran
 answered on 03 Dec 2020
3 answers
1.6K+ views

Hi,

the labels 'Start' and 'End' of the TelerikDateRangePicker are shown over the input controls.

Example Razor page:

@page "/Testsupport1"
 
<TelerikToolBar>
    <ToolBarTemplateItem><label for="cbId">Label1</label></ToolBarTemplateItem>
    <ToolBarTemplateItem>
        <TelerikComboBox TItem="string" TValue="string" Width="80px" Id="cbId" />
    </ToolBarTemplateItem>
    <ToolBarButton Icon="refresh">Refresh</ToolBarButton>
    <ToolBarTemplateItem>
        <label for="ddlId">Label2</label>
    </ToolBarTemplateItem>
    <ToolBarTemplateItem>
        <TelerikDropDownList TItem="string" TValue="string" Id="ddlId" Width="80px"/>
    </ToolBarTemplateItem>
    <ToolBarTemplateItem>
        <TelerikDateRangePicker T="DateTime" />
    </ToolBarTemplateItem>
</TelerikToolBar>

 

Image:https://imgur.com/S0fiwRq

How can I adjust the position of labels and controls?

It is ok to show the labels above, but then for all controls.

Or how can I modify TelerikDateRangePicker to use one line and show the labels before the controls.

Best Regards,

Peter

 

 

Svetoslav Dimitrov
Telerik team
 answered on 03 Dec 2020
3 answers
500 views

Hello everyone,

 

Recently I have been working on a project where we wanted build all of our Components in a separate library.  When we do this, we get the purple squiggly line stating "Found markup element with unexpected name 'TelerikMenu'.  If this is intended to be a component, add a @using directive for its namespace."

 

This is what we include in our _Imports.razor for the Library itself:

@* Telerik. *@
@using Telerik.Blazor
@using Telerik.Blazor.Components

 

This is one of our Components - MainMenu.razor:

@namespace Component.Menu
 
@inherits MainMenuBase
 
@using ViewModel.MainMenu
 
<TelerikMenu Data="@MenuItems"
        ItemsField="@nameof(MainMenuViewModel.SubMenuList)"
        TextField="@nameof(MainMenuViewModel.Name)"
        UrlField="@nameof(MainMenuViewModel.Page)"
        ImageUrlField="@nameof(MainMenuViewModel.IconUrl)"
        IconField="@nameof(MainMenuViewModel.Icon)"
        IconClassField="@nameof(MainMenuViewModel.IconClass)"
        Orientation="@MenuOrientation.Horizontal" />

 

When we compile the project, it runs just fine, but we were really looking for a way to make sure these Messages do not show up.  It also makes it so Intellisense does not find all of the Parameters available to a Telerik Component.

 

All C# code is in full Code-Behind and why it is not posted here.  The C# has no problems at all with Errors, Warnings, or Messages.

 

Thank you for your time,

 

Jesse

Marin Bratanov
Telerik team
 answered on 03 Dec 2020
1 answer
754 views
I am trying to build a stacked bar chart with a cumulative total split to two values per bar, with the data source coming from multiple items that the cumulative counts are derived. My problem is the legend shows the multiple items and the stack breaks out into multiple color sections rather than the two desired, yet I am not able to locate where this is happening in the code. I used the Stacked Bar Chart demo example to create the chart. Can anyone provide their thoughts or suggestions?
Marin Bratanov
Telerik team
 answered on 03 Dec 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?