Telerik Forums
UI for Blazor Forum
4 answers
833 views

Hello,

i found an issue in TelerikDropDownList 
when you bind TelerikDropDownList value to a nullable property after data is loaded it selects the first one as the value 
but when property is not nullable and its bound to value of TelerikDropDownList  when data is read it wont select any value 
which seems reverse 

and also i might not want to select anything at all and let user leave this property empty since its nullable

and also it would be good to have DefaultText for TelerikDropDownList  but i cant use it seems unknown to TelerikDropDownList  

khashayar
Top achievements
Rank 1
Veteran
 answered on 03 Feb 2020
1 answer
183 views
How can I move the window like any other dialog box.
Marin Bratanov
Telerik team
 answered on 31 Jan 2020
2 answers
232 views

The ValueChanged event doesn't fire when the DefaultText item is selected.

 

I have a dropdown containing associate names and I want the user to be able to remove the selected associate and choose the empty one (DefaultText). The ValueChange event will make an API call to remove the associate's id from the record.

 

In my example the type for Value is int?.

<TelerikDropDownList Class="tlk-dd-sm tlk-dd-bg-white w-100" Data="@associates" ValueField="AssociateId" TextField="FullName" ValueChanged="@((int? i) => WorkItemAssigneeChanged(i, workItem))" Value="@workItem.AssignedToAssociateId" DefaultText="" />

Roger
Top achievements
Rank 1
 answered on 30 Jan 2020
11 answers
702 views

Hey everyone,

 

I've been trying Telerik.Blazor on my free time and I happen to have a bit more free time lately. 

My problem : 

 

As soon as I include a custom component with Telerik components in it, i'm having this error when starting the app.

 

Anybody can help my lack of experience? :) Could it be because my trial has expired?

 

QueueViewer_Plans.razor

 

01.@using Autopost_Config.Data.Controllers;
02.@using Autopost_Config.Data.DAL;
03. 
04.@if (plans == null)
05.{
06.    <p><em>Loading...</em></p>
07.}
08.else
09.{
10.    <TelerikGrid Data="@plans" Pageable="true" PageSize="10" Sortable="true" FilterMode="Telerik.Blazor.GridFilterMode.FilterRow">
11.        <GridColumns>
12.            <GridColumn Field="@(nameof(AutopostPlans.Id))" Title="@(nameof(AutopostPlans.Id))"></GridColumn>
13.            <GridColumn Field="@(nameof(AutopostPlans.Task))" Title="@(nameof(AutopostPlans.Task))"></GridColumn>
14.            <GridColumn Field="@(nameof(AutopostPlans.DateAjout))" Title="@(nameof(AutopostPlans.DateAjout))"></GridColumn>
15.            <GridColumn Field="@(nameof(AutopostPlans.Username))" Title="@(nameof(AutopostPlans.Username))"></GridColumn>
16.            <GridColumn Field="@(nameof(AutopostPlans.SendingComputer))" Title="@(nameof(AutopostPlans.SendingComputer))"></GridColumn>
17.            <GridColumn Field="@(nameof(AutopostPlans.PathWorkspace))" Title="@(nameof(AutopostPlans.PathWorkspace))"></GridColumn>
18.        </GridColumns>
19.    </TelerikGrid>
20.}
21. 
22.@code {
23.    AutopostPlans[] plans;
24.    protected override void OnInitialized()
25.    {
26.        plans = AutopostPlansController.GetAll();
27.    }
28.}

 

Index.razor

01.@page "/"
02. 
03.@using Autopost_Config.Data
04.@using Autopost_Config.Components;
05.@using Autopost_Config.Data.Controllers;
06.@using Autopost_Config.Data.DAL;
07.@using Autopost_Config.Data.Services;
08.@inject AutopostDemandesService AutopostDemandesService;
09. 
10.<h1>Configuration de l'autopost RBTK</h1>
11. 
12.<form>
13.    <BlocSelection></BlocSelection>
14.    <QueueViewer_Plans></QueueViewer_Plans>
15.    @*<QueueViewer_Demandes></QueueViewer_Demandes>
16.        <TelerikButton @onclick="@(() => AutopostDemandesService.createNewDemand())">Lancer l'autopost (Telerik)</TelerikButton>*@
17. 
18.    <div class="form-group row">
19.        <div class="col-sm-10">
20.            <button type="submit" class="btn btn-primary" @onclick="@(() => AutopostDemandesService.createNewDemand())">Lancer l'autopost</button>
21.        </div>
22.    </div>
23.</form>
24. 
25.@code {
26. 
27.}

 

Marin Bratanov
Telerik team
 answered on 30 Jan 2020
1 answer
388 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.5K+ 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
250 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
304 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
434 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?