Telerik Forums
UI for Blazor Forum
1 answer
150 views
how can I do Parameter Linkage in a blazor with multiple graph? Does anyone have a sample?
Literately I want to achieve this: https://towardsdatascience.com/dynamic-charts-make-your-data-move-19e540a06bd3 using blazor
Dimo
Telerik team
 answered on 23 Feb 2024
1 answer
218 views

After editing a cell, if I press ENTER it automatically starts editing the cell below; if I press TAB it automatically starts editing the cell at the right:

After pressing TAB:

I need to deactivate that behavior: Press ENTER or TAB should update the target cell and stop editing any other cell:

I tried using Navigable = "false" with no results. How can I achieve this?

This is the example code:

<TelerikGrid Data="Items" Navigable="false" EditMode="GridEditMode.Incell" Width="400px">
	<GridColumns>
		<GridColumn Field="Name" Title="Name" />
		<GridColumn Field="Phone" Title="Phone" />
		<GridColumn Field="Address" Title="Address" />
	</GridColumns>
</TelerikGrid>

@code {
	private List<Item> Items = new()
	{
	   new Item {Name = "User1", Phone = "1111111", Address = "Address1" },
	   new Item {Name = "User2", Phone = "2222222", Address = "Address2" },
	   new Item {Name = "User3", Phone = "3333333", Address = "Address3" }
	};

	private class Item
	{
	   public string Name { get; set; }
	   public string Phone { get; set; }
	   public string Address { get; set; }
	}
}


Dimo
Telerik team
 answered on 23 Feb 2024
0 answers
217 views

I need a solution where I can rearrange "Boxes" in a GridLayout with Drag & Drop.

Before I start to solve it badly on my own I want to make sure if there is not a good solution out there already !?

Has anyone an example or a headstart for me ?

Hendrik
Top achievements
Rank 2
Bronze
Iron
Iron
 asked on 23 Feb 2024
1 answer
292 views

I'm using the TelerikEditor component:

          <TelerikEditor @ref="@SummaryEditor"
                         Class="rich-editor"
                         EditMode="@EditorEditMode.Iframe"
                         Value="@TextDisplayModel.Text"
                         ValueChanged="@RichEditorValueChanges"
                         ValueExpression="@((()=> TextDisplayModel.Text))">
          </TelerikEditor>
And upon updating the variable TextDisplayModel.Text with a new value, the displayed text is not updated. I confirmed with DevTools that despite the textarea associated with the TelerikEditor component being updated, the iframe content does not update, as you can see on the following screenshot. Has anyone encountered this problem?
Hristian Stefanov
Telerik team
 answered on 23 Feb 2024
1 answer
195 views

When using a detail template on a grid control, the user must click twice to expand the detail section after filtering.  

Executable: https://blazorrepl.telerik.com/QyummElT43XLHu3R42

Steps to reproduce:
1) Load Page

2) Make a selection from the category drop down filter

3) Attempt to expand the detail section of any record by clicking on the "+"


@page "/" @using Telerik.DataSource <TelerikGrid TItem="@Person" OnRead="@LoadGrid" SelectionMode="GridSelectionMode.Single" FilterMode="GridFilterMode.FilterRow" FilterRowDebounceDelay="200" Pageable="true" PageSize="15"><DetailTemplate> @{ var selected = context as Person; } <div class="row">

<div class="col-2">

<h1>@selected.First</h1>

</div>

<div class="col-2">

<h1>@selected.Last</h1>

</div>

</div>

</DetailTemplate>

<GridColumns>

<GridColumn Field="@nameof(Person.First)" Title="First" Filterable="false"></GridColumn>

<GridColumn Field="@nameof(Person.Last)" Title="Last" Filterable="false"></GridColumn>

<GridColumn Field="@nameof(Person.Category)" Title="Category">

<FilterCellTemplate> @{ CategoryFilter = context; } <TelerikDropDownList Data="Categories" @bind-Value="SelectedCategory" OnChange="SetupCategoryFilter">

</TelerikDropDownList>

</FilterCellTemplate>

</GridColumn>

</GridColumns>

</TelerikGrid> @code { private FilterCellTemplateContext CategoryFilter { get; set; } = new(); private List<int> Categories = [0, 1, 2, 3, 4]; private int SelectedCategory { get; set; } private async Task SetupCategoryFilter() { var filter = CategoryFilter.FilterDescriptor.FilterDescriptors[0] as FilterDescriptor; if (filter is null) { return; } filter.Value = SelectedCategory; filter.Operator = FilterOperator.IsEqualTo; await CategoryFilter.FilterAsync(); } protected void LoadGrid(GridReadEventArgs args) { List<Person> list = [ new Person {First = "John", Last = "Doe", Category = 1}, new Person {First = "Jane", Last = "Doe", Category = 2}, new Person {First = "John", Last = "Smith", Category = 3}, new Person {First = "Jane", Last = "Smith", Category = 4} ]; args.Data = list; args.Total = list.Count; }

public class Person
{
    public string First { get; set; }

    public string Last { get; set; }

    public int Category { get; set; }
}

}


Tsvetomir
Telerik team
 answered on 22 Feb 2024
1 answer
369 views
I use the TelerikDatePicker: I enter a date and I remove it again, then I click on the calendar icon and I receive an exception...



Microsoft.AspNetCore.Components.Web.ErrorBoundary | Message: Unhandled exception rendering component: "Object reference not set to an instance of an object."
System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Blazor.Components.TelerikDatePicker`1.get_AriaActiveDescendant()
   at Telerik.Blazor.Components.TelerikDatePicker`1.<>c__DisplayClass111_0.<BuildRenderTree>b__2(RenderTreeBuilder __builder2)
   at Microsoft.AspNetCore.Components.CascadingValue`1.Render(RenderTreeBuilder builder)
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
Tsvetomir
Telerik team
 answered on 21 Feb 2024
1 answer
156 views

Hi,
since jQuery has Telerik styles via SASS, is it SASS also available for Blazor? If so, is there direct support for XAML mixins and syntax changes for MAUI clients? Since we want to build Razor pages and WASM for MAUI client with existing Telerik theme which would make consistent appearance within existing jQuery applications ...

Kind regards.

Svetoslav Dimitrov
Telerik team
 answered on 21 Feb 2024
0 answers
254 views

Is it possible to change the component's default language without resorting to localization. As of now, I don't really need to customize my app for a specific region and I want to force it to be exclusively in a specific language, in this case Portuguese. By following the tutorial in Blazor Localization - Telerik UI for Blazor I arrive to an annoying problem where dateTime validation triggers format exceptions due to regional formatting of dates.

 

Ricardo
Top achievements
Rank 1
Iron
 asked on 21 Feb 2024
1 answer
238 views

Hello,

Am trying to toggle the drawer component from a separate razor file.

I have two razor files in the following directories:

\Components\Layout\SiteHeader\SiteHeader.razor

\Components\Pages\Home.razor

If Home.razor contains the default Drawer code:

@* This example shows the basic configuration of the Drawer and how to expand or collapse a Drawer with a click of a button. *@

<TelerikButton OnClick="@(() => DrawerRef.ToggleAsync())"
               Icon="@SvgIcon.Menu">
    Toggle drawer
</TelerikButton>

<TelerikDrawer Data="@Data" Mode="@DrawerMode.Push"
               @ref="@DrawerRef">
    <DrawerContent>lorem ipsum</DrawerContent>
</TelerikDrawer>

@code {
    Telerik.Blazor.Components.TelerikDrawer<DrawerItem> DrawerRef { get; set; }

    IEnumerable<DrawerItem> Data { get; set; } =
        new List<DrawerItem>
            {
            new DrawerItem { Text = "Counter", Icon = SvgIcon.Plus },
            new DrawerItem { Text = "FetchData", Icon = SvgIcon.GridLayout },
            };

    public class DrawerItem
    {
        public string Text { get; set; }
        public ISvgIcon Icon { get; set; }
    }
}

If however I waned to move only the button portion to the SiteHeader.razor file

<TelerikButton OnClick="@(() => DrawerRef.ToggleAsync())"
               Icon="@SvgIcon.Menu">
    Toggle drawer
</TelerikButton>

How can I get access to the 

DrawerRef

So that I can toggle from  SiteHeader.razor 

Is this possible?

Thanks

Any help be appreciated

Thanks

Hristian Stefanov
Telerik team
 answered on 19 Feb 2024
1 answer
295 views
Noticed today that when opened in Figma, these "warning-circle" icons appear (as we suspected) that the top portion of the exclamation mark is not cut through the image. It should look like the "warning-triangle". Any update or info on this would be much appreciated. Thanks in advance!
 
Dimo
Telerik team
 answered on 19 Feb 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?