Hello. Can somebody please help me with custom user functions.
I am using Kendo reporting version 2025 Q1 (19.0.25.211) in my Net Core 8 project. I am using dynamically created reports (not from any template or similar).
Here is the code behind all with config and everything.
Config in app.config xml file:
In my Startup.cs in ConfigureServices I am calling this extension method:
services.AddTelerikReporting();
Here is the extension method:
Here is my custom report resolver:
Here is my custom user function:
I am using it when creating report xml like this:
private static void SetCategoryDateFormat(QueryResult resultDataModel, int dateIndex, GraphGroup categoryGroup, string dateFormat)
{
var value = "NSP.NSPDateFormat(" + StringFormatHelper.RemoveDotsAndCommaAndSpace(resultDataModel.Columns[dateIndex].PropertyPath) + ", '" + dateFormat + "')";
categoryGroup.Groupings.Add(new Grouping("=" + value));
}
I can confirm that in xml I receive from my rest api, in my custom report source resolver I get that in my xml string representing report definition which I than deserialize.
The report is ok, but the call to this custom user function gives me this error:
The expression contains object 'NSP' that is not defined in the current context.
The resolver and custom user function are all in the same assembly NSP.Web.
Also here is the code in razor page for hmlt5 report viewer:
Can anybody give me an idea on why this error, what is happening?
I have wasted a lot of time trying this to work?
Please don't hesitate to ask further questions.
Thanks in advance.
Our .NET 8 project references .NET Standard Telerik.Reporting.dll.
After upgrading to Telerik Reporting 19.0 we get compiler warnings because of conflicting references.
Apparently, Telerik.Reporting.dll references .NET 9 DLLs (for example "System.Text.Json 9.0.0") while our .NET 8 project obviously references .NET 8 DLLs ("System.Text.Json 8.0.0").
I'm surprised this is happening because I thought Telerik.Reporting as a .NET Standard DLL should be independent of these .NET versions?
Do we have to go back to Telerik Reporting 18 to avoid these conflicts?
We are on .NET 8 because it has LTS (long term support) by Microsoft.
Hi Telerik,
I am designing a report in Telerik Report Designer, and I have used a crosstab as shown below:
and the value of ABC (category) and XYZ is retrieved from the API. Suppose ABC are country/color/subject and XYZ are Nepal, Netherlands/red, green/maths, and English as shown below:
but expands according to the data we selected in the filter, and this table shows the category of the selected values accordingly.
My requirement:
I need 4 categories in one row only, and the remaining should be in another row. How can we do that?
Is there any way we can fix the width of the crosstab? so that the width of the crosstab will be fixed on the basis of the report width.
Regards,
Prabesh Shrestha
Hi all,
I'm developing a report and I don't know how to layout it.
The data source is a JSON DataSource and his structure is the following :
public class School
{
public string Name { get; set; }
public List<Class> Classes { get; set; }
}
public class Class
{
public string Name { get; set; }
public List<Student> Students { get; set; }
public List<Teacher> Teachers { get; set; }
}
public class Student
{
public string FirstName { get; set; }
public string LastName { get; set; }
}
public class Teacher
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string Role { get; set; }
}
The desired layout is illustrated on the join file DesiredLayout.png and the report definition is joined too (containing datasource).
As you can see in the report definition, I don't use Header section. Because my list of teachers, on the top right, cannot be in a Header section.
And my problem is when the list of students for one class take more than one page, the school name, the class name and the list of teachers don't repeat.
My second problem is for the numbering on the footer. I don't know how to make it correctly.
Thank you for your help, regardsI am using VIsual Studio 2022 17.13.5 (latest as of March 27,2025)
At some point - not sure if due to a VS update or a Telerik Reporting update, the Report Designer no longer loads with in Visual Studio
(the stand alone designer still works ok)
But now, if I double click on one of my report definition classes, I get an error "Value can not be null, parameter name: instance"
Here is the Call Stack:
at
System.ComponentModel.TypeDescriptor.AddAttributes(Object instance, Attribute[]
attributes) at Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent component, Boolean rootDesigner) at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo) at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name) at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name) at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer) at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer) at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration) at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload) |
I have a report viewer in my WPF app that's working like a charm except that when I click the "Search" icon I encounter an uncatchable "System.Windows.Markup.XamlParseException" exception - I can only catch it as an unhandled exception. The main exception says "Provide value on 'System.Windows.StaticResourceExtension' threw an exception." The inner exception says "Cannot find resource named 'GlyphSearchStop'. Resource names are case sensitive.". I've searched through "C:\Program Files (x86)\Progress\Telerik UI for WPF 2025 Q1" and can find no reference to anything called "GlyphSearchStop".
Any help would be much appreciated!
Thanks!
Hi,
Can I ask does the older version of Telerik Report (Reporting 2017) supports visual studio 2019 ?
If it does, is it possible to provide instruction on how to enable it please?
It seems to work for visual studio 2017, but menu will not show on visual studio 2019.
Many thanks
Regards
Hi, in a report, I need to display, in one text box the first name in bold, a space and the last name (not in bold). first name and last name come from a data source.
I use a HTML Text Box and in the Expression Editor, I type :
=Fields.FirstName + " " + Fields.LastName
And I Put Fields.FirstName in bold. The result is :
[=<strong>Field.FirstName</strong> + " " + Fields.LastName]
But when I preview the report, I have the error :
An error has occured while processing Table 'listEleves':
htmlTextBox1.Value expression [=<strong>Fields.FirstName</strong> + " " + Fields.LastName] is not valid:
Syntax error: Missing operand before '<' operator.
What is wrong ?
So, I've spent about a week trying to resolve an issue where we had one sneaky user function annotated with [Function] that worked fine before the change, but when we updated to 19.0.25.211 everything stopped working normally which is documented but I would say this is really a change that users should be made more aware of.
We constantly evaluate the release history paying special attention to "breaking changes" but this is under the category of "improved" and no real indication that it could negatively affect someone's pre-existing reporting should they use [Function] in a way that is now .. changed. Especially when that change causes reporting errors, that are perceived as "broken".
We're already having a hard time justifying the very very fragile nature of using Telerik Reporting (re: vs designer, core vs netframework, the ticket was created in 2018 ...... !!!! Did you know your competitor's vs designer works properly in netcore/netframework??) but this was just so painful. Adding something more to the release notes would have prevented so much wasted time.
The MultiValue drop-down/list is not working correctly. We are using version 18.0.24.130.
If you select all values, it works correctly except the values are not highlighted to indicate they are selected.
If you select individual values on a required parameter, the message "Please input a valid value" does not go away and the Preview button remains disabled. If you select individual values on a non-required parameter, they are properly highlighted, but when you click Preview, the report ignores them / does not use them to filter the results.
This happens for every report, regardless of who develops it, wherever the multi-value parameter is used.
Our sites using 15.2.21.915 does not have this issue.
Thanks!