Telerik Forums
Reporting Forum
3 answers
288 views

Hi everyone, 

 

I am trying to convert m DevExpress reports into Telerik. I have the code written in C# for Devexpress and having confusion on few of the functions as I am unable to find the Telerik equivalents of those:

onCustomCallback

clientInstanceName

showLoadingPanel

 

These three functions/methods are devexpress methods. Can anyone tell me if there is any Telerik equivalent methods which does the same functionality? 

 

Thank You

Mashfiqul

Silviya
Telerik team
 answered on 16 Oct 2018
5 answers
342 views
Hi,

Is there a way to add a gauge chart in a Telerik report? It is really important for us...

Thank you

Alex
Silviya
Telerik team
 answered on 16 Oct 2018
3 answers
330 views

Hi,

    I am pretty new to Telerik Reporting and I am using C# WPF.  I have set a datatable to the DataSource of Report. The datatable is generated correctly with all rows from specified DB. But it is not displayed in ReportViewer.  Below is my code snippet. Please advise.

 

            Telerik.Reporting.Report myReport = new Telerik.Reporting.Report();
            string selectCommand = @"SELECT * FROM Angle";
            string connectionString = @"Data Source=IndianSections.db3";

            using (var connection = new SQLiteConnection(connectionString))
            {
                using(var command = new SQLiteCommand(connection))
                {
                    connection.Open();
                    command.CommandText = selectCommand;
                    using (var reader = command.ExecuteReader())
                    {                        
                        SQLiteDataAdapter dataAdapter = new SQLiteDataAdapter(selectCommand, connectionString);
                        DataTable dataTable = new DataTable();
                        dataTable.Load(reader);
                        //dataAdapter.Fill(dataTable);
                        
                        var objectDataSource = new Telerik.Reporting.ObjectDataSource();
                        objectDataSource.DataSource = dataTable;

                        myReport.DataSource = objectDataSource;
                        
                        var reportSource = new Telerik.Reporting.InstanceReportSource();
                        reportSource.ReportDocument = myReport;

                        this.reportViewer.ReportSource = (reportSource as ReportSource);
                        this.reportViewer.RefreshReport();
                    }    
                   // connection.Close();
                }
            }

Todor
Telerik team
 answered on 16 Oct 2018
1 answer
1.8K+ views

Hello All, 

  I have my table of data, but above my table, I want to add two rows that will contain the report title, as well as the date rendered information. This information extends beyond what would fit into just one cell, so I'd like to merge the adjacent cells so everything is visible. I don't want to use a header for this information.

Thanks for your help.

Travis

 

Travis
Top achievements
Rank 1
 answered on 15 Oct 2018
1 answer
251 views

Hi,

I have been trying to reduce the checkbox width (Please refer to the attached image) by setting the size property.

this.checkBox1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(2D), Telerik.Reporting.Drawing.Unit.Inch(0.079999998211860657D));

The height attribute works but when I try to change the width, the text part of the checkbox is getting cut off. It's very frustrating as I have spent a lot of time on it without getting the desired result.

Can you please assist me this issue.

Thanks,

Ashith.

 

 

Todor
Telerik team
 answered on 15 Oct 2018
1 answer
262 views

Hi. I try to use this example for create dynamically generated report. I'm want grouping output as described here.Only one change in code from documentation it change

group1.Groupings.Add(new Telerik.Reporting.Grouping("=Fields.ProductID"));

to

group1.Groupings.Add(new Telerik.Reporting.Grouping("=Fields.ProductID"));

 

As I understood this allow me output row with col1=1 in separate group with footer and header,  col1=2 in separate group with footer and header, and two col1=4 with separate group. But it not work as expected. I see one header, one footer and all data between this header and footer.
What I do wrong?
Thank you in advance.

Slava
Top achievements
Rank 1
 answered on 13 Oct 2018
1 answer
297 views
I have the Color and BackgroundColor bound in conditional formatting. When the foreground is supposed to print white it just comes out black. It only happens on certain printers, however I can create a notepad document with the same colors and it prints correctly. Any advise on how to fix the issue?
Todor
Telerik team
 answered on 12 Oct 2018
2 answers
1.1K+ views
Hi,

I've recently migrated from Q2 2011 to Q1 2013 and I can't seem to get the value of the parameter in code behind. I use this value to get the data in the ItemDataBinding event.
And I want to get the selected value in the ItemDataBinding event, but it is always null or it keeps the value if I set it 
manually.
this
.ReportParameters["GroupBy"].Value.ToString()
If I add a textbox in the editor with its value set to :Parameters.GroupBy.Value then the selected field is bound correctly.
Thanks for you help.

Edit: In fact I just realised that the way I'm getting the parameters value doesn't work at all and isn't specific to a report parameter with available values. So I've written my question again to be less specific.
Omar
Top achievements
Rank 1
 answered on 11 Oct 2018
3 answers
537 views

I have a report where someone could pass in a parameter to show "Detail" for the record.  The "detail" is tied to a second  within the Telerik Report.  I am unsure of how to get it to fire and show as it should.  I have added the primary  and displays the records in the group header.  

Attached is an image of what my report looks like SQLDatasource1 is the primary  and uses parameters passed in to display.  If input parameter DetailFlag = true then I want to show the Detail Record which is tied to SQLDataSource2.  

Tried the following in the code-behind but not displaying.

Private Sub detail_ItemDataBound(sender As Object, e As EventArgs) Handles detail.ItemDataBound
    Dim section As Processing.ReportSection = TryCast(sender, Processing.ReportSection)
    If section.Report.Parameters("DetailFlag").Value = "True" Then
        Table1.Visible = True
    Else
        Table1.Visible = False
    End If
    section.Style.BackgroundColor = groupHeaderSection.Style.BackgroundColor
End Sub
Private Sub pageHeaderSection1_ItemDataBound(sender As Object, e As EventArgs) Handles pageHeaderSection1.ItemDataBound
    Dim section As Telerik.Reporting.Processing.PageSection = TryCast(sender, Processing.PageSection)
    Dim txtAsOf As Processing.TextBox = DirectCast(Processing.ElementTreeHelper.GetChildByName(section, "txtAsOf"), Processing.TextBox)
    Dim txtReportParam As Processing.TextBox = DirectCast(Processing.ElementTreeHelper.GetChildByName(section, "txtReportParam"), Processing.TextBox)
    txtAsOf.Value = "AS OF " & Today.ToString("MM/dd/yyyy")
    txtReportParam.Value = "FOR " & section.Report.Parameters("Area").Value.ToString & " - " & section.Report.Parameters("Status").Value.ToString
End Sub
Ivan Hristov
Telerik team
 answered on 11 Oct 2018
4 answers
456 views
Does Telerik Reporting for ASP.Net offer a built-in way to control access to reports based on either the user name or user role (using ASP.Net membership)? Is there a best practice for managing data access? I'm not sure that SQL Server security will be of much use, since the connection will typically be made with a service account for ASP.Net, rather than the individual user's account.
Silviya
Telerik team
 answered on 11 Oct 2018
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?