Telerik Forums
UI for Blazor Forum
2 answers
750 views

I'm new to Blazor with Telerik and i'm having trouble creating a "top-level" notification layout.

I'm using a Drawer for a menu and would like a top-level notification component at the same level or above this Drawer component.

I'm using this as an example: https://github.com/telerik/blazor-ui/tree/master/notification/single-instance-per-app

But when I try to implementation something similar I end up with multiple @Body fragments in my MainLayout as seen below and in turn the content is duplicated.

Although the cascading Notification stuff works nice :)
I figure I'm missing something basic perhaps about encapsulating these into Blazor components? or something related to layouts?
Thanks,
Ed
 
<TelerikRootComponent>
    <TelerikButton OnClick="@(() => DrawerRef.ToggleAsync())" Icon="@IconName.Menu"></TelerikButton>
    <img src="https://www.qat.com/wp-content/uploads/2015/03/qat-global-logo-s.png" align="middle" />
   
    <CultureChooser />

    <TelerikNotification @ref="@Notification.Instance"
                         HorizontalPosition="@NotificationHorizontalPosition.Right"
                         VerticalPosition="@NotificationVerticalPosition.Top"
                         Class="big-notification">
    </TelerikNotification>
    <CascadingValue IsFixed="true" Value="@Notification">
        <div class="content px-4">
            @Body
        </div>
    </CascadingValue>

    <TelerikDrawer @ref="@DrawerRef" Data="@NavigablePages" Expanded="@Expanded" MiniMode="true" Mode="@DrawerMode.Push"
                   SelectedItemChanged="((DrawerItem item) => SelectedItemChangedHandler(item))"
                   ExpandedChanged="((bool newValue) => ExpandedChangedHandler(newValue))">
        <Content>
            @Body
        </Content>
    </TelerikDrawer>

</TelerikRootComponent>

Nadezhda Tacheva
Telerik team
 answered on 08 Dec 2020
1 answer
460 views
I would be nice if the Notification component would just render in the location where it was put by default.  Very strange that it doesn't.
Nadezhda Tacheva
Telerik team
 answered on 08 Dec 2020
2 answers
215 views

Is it possible to have 2 different column values show for each chart category?

1 data series would show wider than the other data series and they would be together for each vertical section?
Essentially a multi-axis column chart but merged together for matching categories.

Marin Bratanov
Telerik team
 answered on 08 Dec 2020
6 answers
839 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.3K+ 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
363 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
226 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.9K+ views
Do we have a replacement for Hyperlinkbutton in Blazor?
 
Svetoslav Dimitrov
Telerik team
 answered on 03 Dec 2020
4 answers
268 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
1.0K+ 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?