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

Obselete GetChildElements Question

3 Answers 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alp
Top achievements
Rank 1
Alp asked on 25 Feb 2013, 08:14 AM
Hi,

We have upgraded to the latest version and compiler gives warning for obselete interface of ChildElements; and suggests using the below instead of it:
Telerik.Reporting.Processing.ElementTreeHelper.GetChildElements(section)

But, I am unable to convert the below line:

Dim procTextbox As Telerik.Reporting.Processing.TextBox = DirectCast(section.ChildElements.Find("txtFile_Name", True)(0), Telerik.Reporting.Processing.TextBox)

Can you please let me know who to achieve the functionality of the line above using the Telerik.Reporting.Processing.ElementTreeHelper.GetChildElements instead?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Alp
Top achievements
Rank 1
answered on 27 Feb 2013, 08:28 AM
Any information is appreciated; please advise asap.

Thanks.
0
Stef
Telerik team
answered on 27 Feb 2013, 05:19 PM
Hi Alp,

The line will look as follows:
Dim textBox = CType(ElementTreeHelper.GetChildByName(section, "textBox1"),Telerik.Reporting.Processing.TextBox)
 You just need to point the type for the conversion. for more details about the available methods, please check this help article: ElementTreeHelper Methods.

I hope this helps.

Greetings,
Stef
the Telerik team

See what's new in Telerik Reporting Q1 2013. Register for the March 4 webinar to witness the impressive new visualizations in Telerik Reporting. Just for fun, 10 webinar attendees will be randomly selected to win a Telerik T-shirt and a $50 Gift Certificate to ThinkGeek. Register now! Seats are limited!

0
Alp
Top achievements
Rank 1
answered on 28 Feb 2013, 08:58 AM
Looks like it worked. Thanks.
Tags
General Discussions
Asked by
Alp
Top achievements
Rank 1
Answers by
Alp
Top achievements
Rank 1
Stef
Telerik team
Share this question
or