Telerik Forums
Reporting Forum
1 answer
350 views

Hello guys,

I want to set up a DateTime property from my DB to use the Bulgarian culture inside a TextBox in the Report Designer. It should use one of the following formats "MMMM yyyy" or "Y" (example: декември 2015).

Using the following code I have found that the Culture does not change even though I have specifically set it to Bulgarian in the code, also in the Report culture and TextBox culture:

Fields.ProductionDate.ToString("Y", CultureInfo.GetCurrentCulture("bg-BG"))

What I have found up until now. is that using the following syntax, with the cultures of the Report and TextBox set. including setting the DateTime formatter for the TextBox to be July 2023 fixes the issue:

=Fields.ProductionDate

However, this does not work for me as the TextBox I am using the property in, includes a lot of text and the only way I have found to write code that way is using Curly Braces which do not seem to apply the selected format.

Result when using =Fields.ProductionDate:

Result when using {Fields.ProductionDate}:

Question 1: Is there a way to change the DateTime Format and Culture using the first approach, if so could you please attach a sample as everything so far that I have tried does not seem to work.

Question 2: Is there a way to go around the curly braces and use the =Fields.ProductionDate with square braces without the need to create a separate TextBox.

Thank you in advance.

Momchil
Telerik team
 answered on 28 Jul 2023
1 answer
136 views

Is it possible to filter by columns in a table from Telerik reporting like a grid view?

Eg. the Image is attached.

 

 

Nikolay
Telerik team
 answered on 28 Jul 2023
0 answers
108 views

I tried to follow the instructions here:

https://docs.telerik.com/reporting/designing-reports/report-designer-tools/web-report-designer/how-to-set-up-in-blazor-application

"Use NuGet package manager to add the Telerik.WebReportDesigner.Services package. This will also resolve other..."

Later on we have:


...
services.TryAddSingleton<IReportServiceConfiguration>(sp => new ReportServiceConfiguration
{
    ReportingEngineConfiguration = sp.GetService<IConfiguration>(),
    HostAppId = "BlazorWebReportDesignerDemo",
    Storage = new FileStorage(),
    ReportSourceResolver = new UriReportSourceResolver(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports"))
});

But some of the types are not available. E.G. FileStorage()

Which is a part of 

Assembly Telerik.Reporting, Version=17.1.23.718, Culture=neutral, PublicKeyToken=a9d7983dfcc261be

So the instruction is misleading for beginners :-) 

Which additional pakets are needed?


Btw: A link to a ready made project may helpful.

:-)

Peter
Top achievements
Rank 1
Iron
Iron
 updated question on 26 Jul 2023
1 answer
93 views

Hello,

I have a page where I load the same report, but with different parameter values each time. What happens is that after the first loading, the Report is not considering the new parameters and keeps bringing the report with the first parameter.

I have tried removing and adding the Report DIV programatically to see if it would clear the Report Viewer contents, but after doing that the Report stops loading, although the HTML DIV Structure is the same as the original.

Any ideias?

Regards,

Alexandre

Todor
Telerik team
 answered on 25 Jul 2023
1 answer
119 views

Good Afternoon Telerik,

 

I currently am averaging to DateTime values from two columns Completed Report and Final Report into one column called CompToFinal

 

I am wanting to average Completed Report to Provisional Report columns. and, sometimes there is No Provisional report but it will ALWAYS have a Final date time. so I want to copy the averaged final time to the provisional column if no provisional value exists or is NULL. I have tried the following code but keep getting errors. Is there a better way to do this?

 

=Avg(Fields.PROVISIONALDATETIME.TimeOfDay - Fields.COMPLETIONDATETIME.TimeOfDay) ?? ? Avg(Fields.FINALDATETIME.TimeOfDay - Fields.COMPLETIONDATETIME.TimeOfDay)

 

Thank you!

1 answer
177 views

We are using the built in Reporting Wizard to set up the report to print on specific label stock.  The biggest probelm we are having, is that if the label prints on more lines than the label will accommodate, it is pushing all remaining text down, there for, causing those labels to print misaligned on the remaining labels in that column.  Is there a way to force enything that prints outside the size of the label to just be skipped?  This is causing our customers some major issue where the first Label is an issue and now the entire column is wasted becuase of the first record in the column.

 

 

Momchil
Telerik team
 answered on 20 Jul 2023
1 answer
199 views

Hello,

I dont see any example using report with blazor webasm.  It's possible using report with viewer on blazor page client side and get data to a API (server side).

Cannot see any example in the examples reports folder (C:\Program Files (x86)\Progress\Telerik Reporting R2 2023\Examples\CSharp)

Thanks about any information related to this.

Lance | Senior Manager Technical Support
Telerik team
 answered on 18 Jul 2023
1 answer
134 views

Hello.

About the report's demo Solution (CSharp.ReportExamples.VS2022), what's the difference btw BlazorNativeIntegrationDemo and BlazorIntegrationDemo?

 

I use a blazor web assembly application with API as backend.

Thank you.

Louis
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 17 Jul 2023
0 answers
108 views

Hi, when i try to paste

{Format('{0}',12.34)}

to htmlTextBox and apply it changes Value to empty.

Is it bug?

When I switch to html view it disappears also.

Wojciech
Top achievements
Rank 1
Iron
 asked on 17 Jul 2023
2 answers
315 views
Hi All,

I am trying to Show Detail of a multiple Orders by, passing their order number . I have to manually select the  order number to display their details(which is coming from by passing ordernumber in store procedure).

I want to pass parameter dynamically in report parameter.

Please suggest!


Thanks in advance
Jayesh
Dimitar
Telerik team
 answered on 13 Jul 2023
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?