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.
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!