Telerik Forums
UI for Blazor Forum
0 answers
91 views
Al crear una TelerikListView no me marca error en codigo pero al mostrarlo en la pagina me sale este error 

Microsoft.JSInterop.JSException: Could not find 'TelerikBlazor.initListView' ('initListView' was undefined).
Error: Could not find 'TelerikBlazor.initListView' ('initListView' was undefined)

como lo podria solucionar?
Alejandro
Top achievements
Rank 1
 asked on 10 Aug 2024
0 answers
115 views

Blazor C# .Net

I have a vertical bar chart.  The bars represent colors so the labels are like "red", "blue"...

Every time I do a search on the database the color count and values change. Like next time it will be "Yellow", "red"...

I want to draw the labels my self and have the colors as little squares under the name of the color.

Like get from where I am...

to labels like

I tried ChildContent on the ChartCategoryAxis but my function void CustomColorLabelDraw(RenderTreeBuilder builder) does not get the index of the tick, and does not get called as many times as there are bars, and the output if I return a AddMarkupContent of "My test string" ends up above the entire chart and outside the chart.

How does on use a C# function to generate the HTML to render a tick label?

 

Richard
Top achievements
Rank 1
 updated question on 09 Aug 2024
2 answers
319 views
Given the definition of a DateTimePicker component binded with a variable of type DateTime? (pic1.png)

<FormItem Field="@nameof(CronTriggerViewModel.EndAt)">
   <Template>
          <label for="endat" class="k-label k-form-label">@L10n["UI-TRIGGERENDAT"]</label>
          <div class="k-form-field-wrap">
          <TelerikDateTimePicker @bind-Value="@CronTriggerVM.EndAt" Placeholder=" " Id="endat" Format="G"/></div>
   </Template>
</FormItem>
[Display(ResourceType = typeof(Resources.Scheduler), Name = "UI_TRIGGERENDAT")]
public DateTime? EndAt { get; set; } = DateTime.Now.AddDays(1);
Even though the placeholder is set to be empty, when the value is cleared, the placeholder still appears (pic2.png), and the field is marked as invalid even though no validation is configured (pic3.png).

For more details, I have attached an animated gif showing what happens (video.zip).

Is there any way to don't show the placeholder and avoid the input to be mark as invalid? 
Twain
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 09 Aug 2024
1 answer
81 views

Hy,

I have a grid with aggregates and I set an initial grouping on the OnStateInit method:

 

Everything is working fine but after the last update the initial grid view is as follows:

As you can see the grouping is duplicated. Can anyone help me?

The grid is attached

Thanks

Dimo
Telerik team
 answered on 09 Aug 2024
1 answer
91 views
z
Imad
Top achievements
Rank 1
 updated question on 08 Aug 2024
0 answers
152 views

Dear,

I have a small test application that uses the telerik DataGrid in Blazor.

For adding records to the dataGrid I use the Popup window.

When doing that and pressing the "update" button once, the popup window doesn't close but my record has been added and the reload of the DataGrid has happend.

Why doesn't it close ?

Kind Regards

T
Top achievements
Rank 1
 asked on 08 Aug 2024
1 answer
107 views

Hi,

is there a way of reimplementing keyboard navigation when using a custom row template?
The documentation states that functionality is taken way due to not knowing the current state which is totally fine.
Maybe someone has an idea on how to reactivate or add keyboard shortcuts for selection and navigation.

Regards,
Tom

Dimo
Telerik team
 answered on 08 Aug 2024
1 answer
79 views

I have a question regarding the recurrence rules for jobs where the original jobs and the instances of recurrence are not in the same searched range.

For example:

  1. If I have a job that has been running for over 2 years, starting at 2022-01-01.
  2. The recurrence rule is set to repeat every day with no end date.
  3. I want to return the events that occurring this week, how am I meant to get the instances of the recurring event without the original job being within the searched range?
Nadezhda Tacheva
Telerik team
 answered on 08 Aug 2024
1 answer
65 views
Hi all,

I am trying to find a way that I can display events using the Scheduler Blazor component that do not use the recurrence rule, but instead display a list of "real" events returned from the DB that are linked via a parent/child relationship.

            foreach (var event in events)
            {

event.RecurrenceRule = null; var firstOccurence = new Job { Id = new Guid(); Start = new DateTime(event.Start.Value.Ticks).AddDays(1), End = new DateTime(event.End.Value.Ticks).AddDays(1), }; var secondOccurence = new Event { Id = new Guid(); Start = new DateTime(event.Start.Value.Ticks).AddDays(2), End = new DateTime(event.End.Value.Ticks).AddDays(2), }; recurrenceEvents.Add(firstOccurence); recurrenceEvents.Add(secondOccurence); } events.AddRange(recurrenceEvents);

The rationale for doing this is to mitigate against issues we have had with long running events and exceeding the Recurrence Exception max length. Doing this currently will not display these events are recurring events, meaning that we lose the functionality of the "Edit Occurrence" or "Edit Series" buttons, and lose the UI element of the recurrence icons in the scheduler.

Is there a way of spoofing recurrence for events in the scheduler?
Nansi
Telerik team
 answered on 08 Aug 2024
1 answer
75 views

Hi all,

Could you please add the OnBeforeActiveTabIndexChange event and allow to cancel ActiveTabIndexChange in the handler?

I saw an example in the doc about how to prevent tab (index) change, but it is not sufficient because of:

- event if you won't change the tab index, the active tab is still being destroyed and recreated;

- we don't want to keep the tab in memory by using the Persist flag;

 

We need to prevent tab switching by showing the user a confirmation and reacting to the user's choice.

Hristian Stefanov
Telerik team
 answered on 07 Aug 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?