Telerik Forums
UI for Blazor Forum
1 answer
365 views

I'm trying to graph some events (Y) over time (X).  ScatterLine chart or anything really.  I've put a DateTime field in the XField value, but the results look like the number of seconds since the epoch. 

A) Can any of the charts handle DateTime values?

B) If yes, does anyone have a good example to share?

 

 

Marin Bratanov
Telerik team
 answered on 30 Jan 2020
4 answers
1.3K+ views

I am using a TelerikDropDownList inside of a @foreach. What I would like when the change event fires is to pass another piece of data from the foreach iteration as well as the selected item in the drop down. Is this possible with the current drop down?

 

Here is a code sample:

@foreach (WorkItem workItem in workItemGroup.WorkItems)
{
    <tr>
        <td>@workItem.WorkItemType.WorkItemTypeCategory.Title - @workItem.WorkItemType.Title</td>
        <td>
            <TelerikDropDownList  Class="tlk-dd-sm tlk-dd-bg-white w-100" Data="@departments" TextField="Title" ValueChanged="@((v) => Test(v))"/>
        </td>
        <td>@workItem.WorkItemStatus.Title</td>
    </tr>
}

 

The only solution that I can think of currently is to create each <td> as its own razor component.

Roger

Roger
Top achievements
Rank 1
 answered on 29 Jan 2020
1 answer
3.4K+ views

Is there a way to bind the Data source for a Blazor UI DropDownList to an Enum, similar to the Kendo described in this link --> https://www.telerik.com/forums/dropdownlist-with-enums ?

 

Marin Bratanov
Telerik team
 answered on 22 Jan 2020
1 answer
232 views

Hi guys,

after updating the Blazor nuget package to version 2.6.1 the SortOrder property of IGridBoundColumn is missing the [Parameter] attribute.

If i set the SortOrder: 

<GridColumn SortOrder="@Sort.None" Filterable="false" Field="@col.PropertyPath" Title="@col.HeaderText">
    <Template>
        @* Content goes here *@
    </Template>
</GridColumn>

I get the following exception:

2020-01-21 09:47:29.5899|100|WARN|Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer|Unhandled exception rendering component: Object of type 'Telerik.Blazor.Components.GridColumn' has a property matching the name 'SortOrder', but it does not have [ParameterAttribute] or [CascadingParameterAttribute] applied. System.InvalidOperationException: Object of type 'Telerik.Blazor.Components.GridColumn' has a property matching the name 'SortOrder', but it does not have [ParameterAttribute] or [CascadingParameterAttribute] applied.
   at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.ThrowForUnknownIncomingParameterName(Type targetType, String parameterName)
   at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.SetProperties(ParameterView& parameters, Object target)
   at Microsoft.AspNetCore.Components.ParameterView.SetParameterProperties(Object target)
   at Microsoft.AspNetCore.Components.ComponentBase.SetParametersAsync(ParameterView parameters)
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.SetDirectParameters(ParameterView parameters)
   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewComponentFrame(DiffContext& diffContext, Int32 frameIndex)
   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewSubtree(DiffContext& diffContext, Int32 frameIndex)
   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InsertNewFrame(DiffContext& diffContext, Int32 newFrameIndex)
   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InsertNewFrame(DiffContext& diffContext, Int32 newFrameIndex)
   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InsertNewFrame(DiffContext& diffContext, Int32 newFrameIndex)
   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(DiffContext& diffContext, Int32 oldStartIndex, Int32 oldEndIndexExcl, Int32 newStartIndex, Int32 newEndIndexExcl)
   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.ComputeDiff(Renderer renderer, RenderBatchBuilder batchBuilder, Int32 componentId, ArrayRange`1 oldTree, ArrayRange`1 newTree)
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()

 

Is there a new / other way to control sorting of the columns i missed?

Best Regards,

Matt

Marin Bratanov
Telerik team
 answered on 21 Jan 2020
3 answers
277 views

Today i use the WPF scheduler for my planning application and i would like to experminent with the Blazor scheduler.

My current scheduler uses a multiday view with horizontal the days with the hours, vertical i use the equipments as resource to view the appointments for the equipments.

I wonder if this can be achieved with the current component

Marin Bratanov
Telerik team
 answered on 21 Jan 2020
4 answers
350 views

Hi!

I just used the Telerik Extension to create a Server-Side Grid Demo project using .Net Core 3.1 on VS Enterprise 16.4.3. The project runs properly but I noticed that the menu is not behaving properly at all:

 - I always has the Home element highlighted

 - The Menu Items are not functioning after clicking so I cannot navigate to /counter or my custom /company page

 - Console in Edge and Chrome do not register any activity when I click on a MenuItem

 - Inspecting the Menu Item doesn't show the internal <a> with a  proper href set

 - I'm running site on IIS Express with HTTPS self-signed certificate

Marin Bratanov
Telerik team
 answered on 21 Jan 2020
1 answer
289 views
I'm using SelectedItemsChanged to track multiple selected items in Grid. Everything works but when I pre-selecting items in OnInitializedAsync method the checkboxes doesn't get checked. I canot use @bind-SelectedItems, I need to do it manually. How can I make this checkboxes get's checked ?
Flotman
Top achievements
Rank 1
 answered on 20 Jan 2020
3 answers
170 views
My "page-wrapper" has "left" property set to 60px. DropdownList is adding inline style to list with incorrect "left" value which is causing list to not being allined with input, as you can see in attached image. How dropdown list is calculating this values? Can I override this behaviour? It is worth to mention that normal jquery-kendo Dropdown behaves correctly, so this is a problem strictly with balzor version. 
Marin Bratanov
Telerik team
 answered on 20 Jan 2020
9 answers
454 views

I want to create character shortcuts and be able to default the date based on the shortcut.  This would be similar to how quicken does it within quickbooks.  In other words, I want the user to be able to type the letter 'T' for today's date.  M for the first day of the month, and so on.

I check the OnValueChangedHandler but it doesn't seem to fire for non-numeric characters.

Any help would be appreciated,

Joe

Marin Bratanov
Telerik team
 answered on 17 Jan 2020
2 answers
671 views

I am trying to use the Telerik Grid but am getting an error: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer: Warning: Unhandled exception rendering component: An item with the same key has already been added. Key: Title

Version = 2.6.0

I have a List called skills that holds a list of Skill objects

The Skill object has a string property called Title

The Skill object has an object property called Department

The Department object has a string property called Title as well.

In the grid I want to show the Title from the Skill and the Title from the Department...here is the code

<TelerikGrid Data="@skills" Height="calc(100vh - 150px)" Pageable="false" Sortable="true" Groupable="true" FilterMode="Telerik.Blazor.GridFilterMode.FilterRow" Resizable="false" Reorderable="true">
    <GridColumns>
        <GridColumn Field="@(nameof(Skill.Title))"></GridColumn>
        <GridColumn Field="@(nameof(Skill.Department.Title))" Title="Department"></GridColumn>
    </GridColumns>
</TelerikGrid>

 

But I am getting this error and I can't seem to find a way to work around it without creating a custom class.

Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer: Warning: Unhandled exception rendering component: An item with the same key has already been added. Key: Title

System.ArgumentException: An item with the same key has already been added. Key: Title
   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at Telerik.Blazor.Components.Grid.Extensions.ColumnExtensions.GroupTitles(IEnumerable`1 columns)
   at Telerik.Blazor.Components.TelerikGridBase`1.GetGroupTitles()
   at Telerik.Blazor.Components.TelerikGrid`1.<BuildRenderTree>b__0_1(RenderTreeBuilder __builder2)
   at Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent(Int32 sequence, RenderFragment fragment)
   at Microsoft.AspNetCore.Components.CascadingValue`1.Render(RenderTreeBuilder builder)
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()
Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost: Error: Unhandled exception in circuit 'nYpuCoL1tuhOnJfvQJicLrdf3xOuc3npfnJ-aZdQ7EA'.

 

Roger
Top achievements
Rank 1
 answered on 17 Jan 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?