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

Move item based on values

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Devin
Top achievements
Rank 1
Devin asked on 17 Jan 2012, 10:05 PM
Is it possible to move an item in a report to certain location base on values of other fields? The automatic layout isn't working because of the structure of this report, and I'd like to know the best way to do it in code.

Thanks

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 18 Jan 2012, 11:15 AM
Hi Devin,

If the automatic layout is not working for you, then most likely you're trying to do something that is probably not recommended or feasible in the context of a report. Elaborating on your goal, can give us better idea what you want to do and we can provide more accurate advice.
Anyway find attached a sample report that shows how to set the location with user function and binding. For simplicity we set the X and Y location directly, but if those values come from database you would have to change the expression to contain the respective fields. The ReportItem keyword holds reference to the item in which context the expression is executed and the Parent keyword gets you one level up if you would like for some reason to get reference to the report.

Greetings,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Devin
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or