Telerik Forums
UI for Blazor Forum
0 answers
164 views

Hi,

I have set up my model the exact way it is in the demo. My client makes a JSON call to API to populate the scheduler. The post is successful but the get seems to break the scheduler. The error message is below:

Error: System.InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Collections.Generic.IEnumerable`1[System.DateTime]'. at Telerik.Blazor.Components.TelerikScheduler`1.CreateAppointment(TItem dataItem) at Telerik.Blazor.Components.TelerikScheduler`1.ExpandAppointments() at Telerik.Blazor.Components.TelerikScheduler`1.ProcessAppointmentsAsync() at Telerik.Blazor.Components.TelerikScheduler`1.OnParametersSetAsync() at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

 

unsure why I need to cast as the demo it seems to work fine without casting. Is this an issue within the UI control itself?

I'm using version 2.24.0

Thanks

Blair
Top achievements
Rank 1
 asked on 14 Jan 2023
1 answer
123 views

Say I have a report with 13 month column names.

Depending on the date range given to report the columns names could be different.

How do I build the resulting class to hold the data for the gird in this case?

 public class MgtRtp2Result
        {
            public string? TN { get; set; }
            public string? BAN { get; set; }
            public string? Platform { get; set; }

            [DisplayFormat(DataFormatString = "{0:C}")]
            public decimal Col1Amt { get; set; }

            [DisplayFormat(DataFormatString = "{0:C}")]
            public decimal Col2Amt { get; set; }

      }

Col1Amt name in the SQL result coming back could be May2022 for first run but Jun2022 for next run.

Same thing can happen Col2Amt.

Thanks for the help.

Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
 answered on 13 Jan 2023
1 answer
103 views

I am having an issue with this control.

When testing it I init it from the OnInitialized section and it worked fine.

But in production app It does not get init until after a DDL on the page is chosen from by user.

In this case I keep getting NO Data displayed on the drop down part.

Take the same code and put in the OnInitialized section and the controll is filled in.

How can I get it to work after the ddl is chosen?

 

Thanks

Deasun.

Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
 answered on 13 Jan 2023
1 answer
142 views

I have a SP I call that takes 1 or 2 minutes to run.

I am running into the error:

system threading taskcanceledexception a task was canceled

atm the SP takes 1:08 to run.

At 35 seconds, using filters to get less data back, it runs fine!

We have many reports that take a bit to run.

How to I get this task thing to stop killing my app.

 

Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
 answered on 13 Jan 2023
1 answer
75 views

I have a TelerikGrid with OnRead set with code that retrieves Paged data via an API.

I store the items + page number + total items etc so that when the user returns they see their previous search.

I tried using OnStateInit, but it only lets me set the page number - not the data items or total results.

 

Dimo
Telerik team
 answered on 13 Jan 2023
1 answer
272 views

Hello,
I would like to customize the filtering view window in Gantt. Is there a possibility to search for simple values using a text field?
In addition, I would also like to make changes to the labels (language: German).

The same applies to the event settings (double-click on events), where I would also like to change the language to German.

 

Many thanks in advance.

Hristian Stefanov
Telerik team
 answered on 13 Jan 2023
1 answer
165 views

When export the grid to excel is there a way to tell it to use the row colors the grid shows on the page?

 

Thanks.

Nadezhda Tacheva
Telerik team
 answered on 12 Jan 2023
1 answer
225 views

Hello,

Is there a way to capture when the contextmenu is closed? 

If user presses one action or just clicks outside the menu.

Either a method or an event.

Thanks

Dimo
Telerik team
 answered on 12 Jan 2023
1 answer
173 views

I have a grid that I am filling using an OData endpoint.  To this, I would like to add a CompositeFilterDescriptor or a filter that only retrieves records that have at least a count of > 0 for a child collection of the parent data.

i.e.

MyClass{
public int Id {get;set;}
public List<Flag> Flags {get;set;}
}

I want to bring back all records that have at least one flag record in the Flags collection.

I am able to manually add the filter to the url and retrieve the object but when I try to add a filter via the DataSourceRequest it treats the >0 as a string character and tries to  surround it with double quotes.

Dimo
Telerik team
 updated answer on 12 Jan 2023
1 answer
121 views

Hello,

 

Is there a way to change to size of the pie chart. It seems there is a lot of whitespace available for the chart in the svg that is drawn, compared to other chart types.

 

Svetoslav Dimitrov
Telerik team
 answered on 12 Jan 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?