Telerik Forums
Reporting Forum
1 answer
171 views

Hi,

I would like to have a list of objects which all inherit of the same type but can have some specific properties.

Exemple:

public class MyPrimaryClass
{
    public int CommonProperty { get; set; }
 }
 
public class MyInheritedClass1 : MyPrimaryClass
{
    public int SpecificProperty1 { get; set; }
 }
 
public class MyInheritedClass2 : MyPrimaryClass
{
    public int SpecificProperty2 { get; set; }
 }

 

And I would like to display these specific properties and if possible display each object in a specific format. Do you have an idea of how I can do that using telerik reporting ? I can't find any example or thread on this topic, but maybe I just didn't use the right key words ;)

Thanks and regards,
Olivier

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 06 Jun 2019
2 answers
1.2K+ views

Hello,

i have a field returning Boolean Value (True/False), and i want to Sum another field Named (Total) in the footer section when my Boolean Value return TRUE for each record in the detailed section  

Thanks.

Rod
Top achievements
Rank 1
 answered on 05 Jun 2019
5 answers
438 views
Hi there,

using the standalone report Designer to create trdx report, the often
in C# described method  will not work fpr TRDX based subReports!

an error has occurred while processing subreport 'subreport2':
Bindings rror Property 'DataSource' does not exist.

everbody knows, in C# way, it works like:
this.subReport1.Bindings.Add(new Telerik.Reporting.Binding("ReportSource.DataSource""=ReportItem.DataObject.Persons"));

but using the Standlone Designer (TRDX file), for the binding, he cannot find DataSource ?
...
        <SubReport Name="subReport2">
          <ReportSource>
            <UriReportSource Uri="ReportLines.trdx">
            </UriReportSource>
          </ReportSource>
          <Bindings>
            <Binding Path="ReportSource.DataSource" Expression="=Fields.Lines" /> ----- .DataSource is not found
          </Bindings>
        </SubReport>
...
thank you for helping
Steffen

Silviya
Telerik team
 answered on 05 Jun 2019
3 answers
1.2K+ views

I have two List : 1)  ListPolicies, (Outer list, parent list)

                           2) ListBrokers (inner list, child list)

 

Class DataBind
{
public list <Policy> PolicyList {get;set;}
}

class Policy
{
public PolicyNumber {get;set;}
public PolicyName {get;set;}
public List<Broker> {get;set;}
}

class Broker
{
public Name {get;set;}
public Address {get;set;}
}​

 

bind data to parent list

ListPolicies.DataSource = defaultReportViewModel.PlanProvider.PolicyList;​

 Now i want to bind data childlist, how to achieve this thing???

 

Silviya
Telerik team
 answered on 04 Jun 2019
1 answer
314 views

How do I pass culture info from client to server? I'm using the js library to initialize the report viewer (telerik_ReportViewer).

I had a look the doc here here but I don't see how this can be passed to the server.

 

I want to pass the culture info to the reporting service so that I can set the culture of the running thread correctly.

 

Thanks

Todor
Telerik team
 answered on 31 May 2019
1 answer
541 views

Hello

I Have a column that has data in the date - HH:MM format, example "00:22", how to sum all the values in that column. 

One more thing the data is coming from a JsonDataSource that has null values in date column, using the (IsNull, ??, IIf) to check for null does not seem to work. for example: =IIF(Fields.actualWorkHrs Is NULL, "T", "F") always returns falls even when there are null values in the actualWorkHrs  field

 

thanks. 

Silviya
Telerik team
 answered on 29 May 2019
1 answer
228 views

Hello, I have these 3 classes

Public MyClass1
{
Public string Name { get; set; }
Public Class2 MyProperty { get; set; }

}

Public Class2
{
Public List<Class3> productList { get; set; }
...
}

Public Class3
{
Public int productCode { get; set; }
Public string productDescription { get; set; }
...
}

 

My Object DataSource is "MyClass1". I need to list "productList" in my DetailSection but I have some errors.

In the image below, the result expected

 

Silviya
Telerik team
 answered on 29 May 2019
7 answers
1.1K+ views

I've finished converting our existing Telerik reporting application to the HTML5 report viewer, once deployed to the server the app starts throwing a 404 error.

here's a list of what I'm using and what's installed on both the Dev machine and the Server (IIS 7.0):

  • Telerik reporting 10.0.16.204 (Feb 05, 2016)
  • Kendo UI Prof 2016.1.226 (Feb 26, 2016)
  • .Net 4.5
  • The Dev machine uses IIS Express
  • The Server runs IIS 7.0

I used Fiddler to inspect and compare the requests/responses, and here's a copy:

Dev Machine

200    HTTP    localhost:64290    /Viewer.aspx?c=ddee2936-b35f-4766-b0e8-37340e5e7df7&u=d94ae397-e4a2-46fc-b95b-1308f5c85c8e&r=5c1dea16-47ff-458c-9a79-e8fb96233a02    24,933    private    text/html; charset=utf-8    iexplore:15028            
200    HTTP    localhost:64290    /js/jquery-1.10.2.js    108,002        application/javascript    iexplore:15028            
200    HTTP    localhost:64290    /ClientThemes/Tracker/kendo.css    14,833        text/css    iexplore:15028                        
200    HTTP    localhost:64290    /WebResource.axd?d=mc-7ZkzJDFkxx81trXXMYnKRFBj8nw...    13,215    public; Expires: Tue, 21 Mar 2017 13:19:11 GMT    text/css    iexplore:15028            
200    HTTP    localhost:64290    /WebResource.axd?d=eiUm-0avedYOJt0Pnasm6tHaVdNsY_...    91,511    public; Expires: Tue, 21 Mar 2017 13:19:11 GMT    text/javascript    iexplore:15028            
200    HTTP    localhost:64290    /WebResource.axd?d=U-QtGVIjXaG-VilkbaKZwpYORbfoTy...    53,503    public; Expires: Tue, 21 Mar 2017 13:19:11 GMT    text/css    iexplore:15028                    
200    HTTP    localhost:64290    /WebResource.axd?d=DqDmbWgg4b-vCGBbWHkNnsxNjZkW7Z...    24,238    public; Expires: Tue, 21 Mar 2017 13:19:11 GMT    text/javascript    iexplore:15028            
200    HTTP    localhost:64290    /Templates/tSimple.html    1,390        text/html    iexplore:15028    

IIS Server

200    HTTPS    reportingURL    /Viewer.aspx?c=ddee2936-b35f-4766-b0e8-37340e5e7df7&u=d94ae397-e4a2-46fc-b95b-1308f5c85c8e&r=5c1dea16-47ff-458c-9a79-e8fb96233a02    46,481    private    text/html; charset=utf-8    iexplore:12336            
200    HTTPS    reportingURL    /js/jquery-1.10.2.js    273,990        application/x-javascript    iexplore:12336            
200    HTTPS    reportingURL    /ClientThemes/Tracker/kendo.css    70,577        text/css    iexplore:12336                                                
200    HTTPS    reportingURL    /WebResource.axd?d=U-QtGVIjXaG-VilkbaKZwi-WFq2bsW...    243,472    public; Expires: Tue, 21 Mar 2017 14:53:06 GMT    text/css    iexplore:12336            
200    HTTPS    reportingURL    /WebResource.axd?d=eiUm-0avedYOJt0Pnasm6rXLcuIS9X...    213,589    public; Expires: Tue, 21 Mar 2017 14:53:06 GMT    text/javascript    iexplore:12336            
200    HTTPS    reportingURL    /WebResource.axd?d=mc-7ZkzJDFkxx81trXXMYjjRyE7-m5...    59,114    public; Expires: Tue, 21 Mar 2017 14:53:06 GMT    text/css    iexplore:12336                    
200    HTTPS    reportingURL    /WebResource.axd?d=DqDmbWgg4b-vCGBbWHkNnrPy2xQHYi...    67,797    public; Expires: Tue, 21 Mar 2017 14:53:06 GMT    text/javascript    iexplore:12336            
200    HTTPS    reportingURL    /Templates/tSimple.html    5,061        text/html    iexplore:12336            
404    HTTPS    reportingURL    /api/reports/resources/font/fonticons-css    1,245        text/html    iexplore:12336            
404    HTTPS    reportingURL    /api/reports/resources/styles/telerikReportViewer-css    1,245        text/html    iexplore:12336

 

I've realized that I have 2 extra requests on my Server, and they are both returning 404 response

  • /api/reports/resources/font/fonticons-css
  • /api/reports/resources/styles/telerikReportViewer-css

and here's my questions:

  1. why I have 2 extra requests on my server? (and/or why don't I see these requests on my Dev machine)
  2. if these are legit requests, why are they returning a 404?
    these requests look like a resource requests,
    where does the API call look for resources? (i.e where does /api/reports/resources/ points to?)

Your help is much appreciated,
Ghayth Hilal

Neha
Top achievements
Rank 1
 answered on 28 May 2019
9 answers
258 views

Cannot self host telerik rest service as the ReportsController uses the HttpContext which is not available when self hosting

var appPath = HttpContext.Current.Server.MapPath("~/");             

var reportsPath = Path.Combine(appPath, "Reports");

what is the recommended work around

Thanks

Laz
Top achievements
Rank 1
 answered on 27 May 2019
4 answers
330 views

Hi,

I want to group some items in the combobox of my reports.

Please see the example( groupedCombobox.jpg ) , which I have attached.

I used horizontal lines to separate the groups.

But how can I realize that in a report parameter which is a combobox?

Have you an example project?

 

Regards

Neli
Telerik team
 answered on 27 May 2019
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?