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

warnings in q1.2010

3 Answers 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Martin P
Top achievements
Rank 1
Martin P asked on 11 Mar 2010, 12:46 AM
Hi, just updated to latest release and reports now have multiple warnings (over 100 in project) such as ones listed below, could you please advise.

Warning 1 'Public Overridable ReadOnly Property UI() As Telerik.Reporting.ReportParameterUISettings' is obsolete: 'Please use the corresponding properties in the ReportParameter instead.'. E:\Development\VS2008\Evolution\wwwEvolution\wwwEvoRpts\HaulSelfBill\rptHaulSelfBill.Designer.vb 707 7 wwwEvoRpts
Warning 2 'Public ReadOnly Property AvailableValues() As Telerik.Reporting.ReportParameter.IAvailableValues' is obsolete: 'Please use the ReportParameter.AvailableValues property instead.'. E:\Development\VS2008\Evolution\wwwEvolution\wwwEvoRpts\HaulSelfBill\rptHaulSelfBill.Designer.vb 707 7 wwwEvoRpts
Warning 10 'Public Property MultiValue() As Boolean' is obsolete: 'Please use the ReportParameter.MultiValue property instead.'. E:\Development\VS2008\Evolution\wwwEvolution\wwwEvoRpts\HaulSelfBill\rptHaulSelfBill.Designer.vb 711 7 wwwEvoRpts
Warning 13 'Public Property Text() As String' is obsolete: 'Please use the ReportParameter.Text property instead.'. E:\Development\VS2008\Evolution\wwwEvolution\wwwEvoRpts\HaulSelfBill\rptHaulSelfBill.Designer.vb 712 7 wwwEvoRpts
Warning 15 'Public Property Visible() As Boolean' is obsolete: 'Please use the ReportParameter.Visible property instead.'. E:\Development\VS2008\Evolution\wwwEvolution\wwwEvoRpts\HaulSelfBill\rptHaulSelfBill.Designer.vb 713 7 wwwEvoRpts

3 Answers, 1 is accepted

Sort by
0
Martin P
Top achievements
Rank 1
answered on 11 Mar 2010, 12:51 PM
Update: Opening reports with the warnings in designer making a change and resaving seems to have fixed these.
0
Svetoslav
Telerik team
answered on 11 Mar 2010, 05:52 PM
Hello Martin P,

With the release of Telerik Reporting 2010 Q1 we have introduced a slight change in the ReportParameter API. As the warning message explains the ReportParameter.UI property and the object it exposes - ReportParameterUISettings, are no more needed and all properties previously accessible through this type are moved to the ReportParameter class.

For backwards compatibility the UI property is still there and you may continue using it. There is nothing to worry about, but it is good to modify your code according to the new API. Because all properties of ReportParameterUISettings class are moved to the ReportParameter class the change is quite straightforward:

- OLD: reportParameter1.UI.Text = "Start Data";
- NEW: reportParameter1.Text = "Start Data";

Sincerely yours,
Svetoslav
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Martin P
Top achievements
Rank 1
answered on 12 Mar 2010, 12:37 AM
Hi, thanks for the reply.

As the new warnings are from the designer generated code, maybe the upgrade wizard could've replaced these obsolete statements?

cheers
Martin P
Tags
General Discussions
Asked by
Martin P
Top achievements
Rank 1
Answers by
Martin P
Top achievements
Rank 1
Svetoslav
Telerik team
Share this question
or