This is a migrated thread and some comments may be shown as answers.

Binding Property of Report

2 Answers 171 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Olivier
Top achievements
Rank 1
Olivier asked on 18 Jul 2013, 03:04 PM
Hello all
I am new with Report and I would binding a field of my Report (not a field of DataSource)
MyReport.cs 
public partial class MyReport : Telerik.Reporting.Report
{
      public string MyString
   {
      get { return "Demo Telerik Report"; }
      }
 
        public EntiteDatabase()
        {
            //
            // Required for telerik Reporting designer support
            //
            InitializeComponent();
 
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
}
And in my TextBox, I tried to bind with this expression "=Report.MyString" but it's dosen't work.
It's possible ?
I wouldn't use static method because this field could depending parameters of my report or others ...

thanks for help

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 22 Jul 2013, 04:10 PM
Hi Arnaud,

You can use the following expression to access public report definition property:

=ReportItem.Report.ItemDefinition.MyField

Regards,
Peter
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Olivier
Top achievements
Rank 1
answered on 23 Jul 2013, 06:19 AM
Thanks Peter
That's work :)
Tags
General Discussions
Asked by
Olivier
Top achievements
Rank 1
Answers by
Peter
Telerik team
Olivier
Top achievements
Rank 1
Share this question
or