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

How to have dynamic / relative location of controls based on visibility of other controls?

1 Answer 234 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 13 Aug 2012, 08:19 PM
I have a fairly simple scenario that hopefully someone else has encountered and knows how to solve.

In a report, I have a pretty normal table of fields that show information about a tutoring session.  Under this, I have a field that shows a note that was entered by the session's teacher, and then under that I have two more subreports.

If the note is empty, I make the textbox invisible, however the location of the other controls (i.e. the sub reports below the note field) is not relative / dynamic, so when the note field is not visible, there's a whitespace gap in its place that I would like to get rid of.

Is there a way, without having to programmatically alter the location of every other control on the report, to accomplish what I want?

Thanks!

1 Answer, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 15 Aug 2012, 04:22 PM
Hello James,

In Telerik Reporting if an item is not visible at runtime it will also be collapsed, i.e. its place will be taken by other items that are below it and this behavior is by design. We were unable to reproduce any problems with hiding (collapsing) items (Textboxes and others) and subsequent items (including SubReports). Therefore we will need additional information about your setup as there might be a setting or item that we are not aware of. Additionally you can send us a runnable sample that exhibits the issue so that we are able to reproduce it locally and advise you accordingly. Also you can test this behavior by yourself with a simple reports with just a few items on it.

Kind regards,
IvanY
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

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