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

Problem after Upgrade to 10.2.16.914

3 Answers 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Otto Neff
Top achievements
Rank 2
Otto Neff asked on 10 Oct 2016, 08:17 AM

Hi,

just used the Upgrade Wizard in VS and upgraded to 10.2.16.914 from previous release Version.

Now the reports are broken. Maybe someone can help.

The Textbox.Value applied Text is not rendered anymore on NeedDatasource Event, see attached screenshots.

Kind regards.

3 Answers, 1 is accepted

Sort by
0
Otto Neff
Top achievements
Rank 2
answered on 10 Oct 2016, 08:28 AM

After using Upgrade Wizard with Version 10.1.16.504,
Reports, same code, working again.

Something changed on lifecycle? 

0
Accepted
Stef
Telerik team
answered on 12 Oct 2016, 11:33 AM
Hi,

An important change as of R3 2016 is that any changes of the report definition or its items in events will not be applied. In events you can access and modify only the processing elements -  Understanding events . In previous versions changes were propagated, but the result was unpredictable due to the relation to the order of processing of inner elements of the report.

To illustrate:​
  • Invalid:
    private void textBox1_ItemDataBinding(object sender, EventArgs e)
    {
     //the change will not be applied
      this.textBox1.Value="test";
    }
  • Valid:
    private void textBox1_ItemDataBinding(object sender, EventArgs e)
    {
        //the change will be applied on the current processing element, not all processing elements originating from this.textBox1 definition
        Telerik.Reporting.Processing.TextBox txt = (Telerik.Reporting.Processing.TextBox)sender;
         txt.Value="test";
    }
  • Recommended:
    //code from the report's designer.cs file
    this.textBox1.Value="=MyFunction(Fields.X)";
     
    public static string MyFunction(int paramX)
    {
        return String.Format("{0} position", paramX);
    }

Let us know if you need further help.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Otto Neff
Top achievements
Rank 2
answered on 13 Oct 2016, 08:10 AM

This helps a lot! Thanks for the pretty clear answer.

 

Tags
General Discussions
Asked by
Otto Neff
Top achievements
Rank 2
Answers by
Otto Neff
Top achievements
Rank 2
Stef
Telerik team
Share this question
or