Chris @ Intrinsic
Top achievements
Rank 1
Chris @ Intrinsic
asked on 08 Sep 2011, 01:41 AM
It seems simple enough, but they either overlap, or they are too far apart. I have a report with about 50 textboxes, and want to align them vertically and horizontally and I don't think I can use a table, as it's just one record. You cant move a textbox pixel by pixel, using the keyboard or the mouse. It moves more than one pixel at a time, so you can never align everything perfectly. How would I accomplish this?
Thanks.
Thanks.
5 Answers, 1 is accepted
0
Hi Chris,
Generally we highly recommend using the designated Table item which is meant exactly for tabular layout. It is not mandatory to bind it and it can show hardcoded data as well.
Your other approach if you feel the Table does not fit your needs is described in the Dynamic Layout (Dock and Anchor) help article.
Greetings,
Steve
the Telerik team
Generally we highly recommend using the designated Table item which is meant exactly for tabular layout. It is not mandatory to bind it and it can show hardcoded data as well.
Your other approach if you feel the Table does not fit your needs is described in the Dynamic Layout (Dock and Anchor) help article.
Greetings,
Steve
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
0
Chris @ Intrinsic
Top achievements
Rank 1
answered on 08 Sep 2011, 09:21 PM
I can't get the table to display data without binding. First off, it has to be in the detail section, and it's an object itself. I have multiple datatables, so the report can't distinguish between the two datatables, without specifically binding at run time, (as it's a webservice, which means ONLY bindable at run time.) I need 11 tables as there is 11 sections, so I'll have to bind the same datatable to 10 different tables at run time, which seems very inefficient. The 11th table is bound to the 2nd datatable, which works fine.
0
Chris @ Intrinsic
Top achievements
Rank 1
answered on 08 Sep 2011, 09:36 PM
I also tried docking the fields as well. but my report has the following layout:
section 1
field 1 field 2 field 3 field 4
field 5 field 6 field 7
....
...
**** EMPTY SPACE HERE between each section *****
section 2
field 10 field 11 field 12
field 13 field 14
...
...
..
***** Detail section of report starts here *******
section 4
field 40 field 41 field field 42 <---- THIS is the only area that prints MULTIPLE Records
***** Detail section of report ENDS here *******
****** max page height ENDS here *****
section 5
field 43 field 44
....
...
----
Section 11
Field 125 field 126 field 127
...
...
..
so, I have a problem aligning textboxes and ALSO with the max page height, although it works fine in HTML preview, it only prints the detail section when I export to PDF.
I need to find a way to align the fields as well as split up the fields into multiple pages so it works both in HTML preview and Preview mode, and of course when exporting to PDF.
Thanks.
section 1
field 1 field 2 field 3 field 4
field 5 field 6 field 7
....
...
**** EMPTY SPACE HERE between each section *****
section 2
field 10 field 11 field 12
field 13 field 14
...
...
..
***** Detail section of report starts here *******
section 4
field 40 field 41 field field 42 <---- THIS is the only area that prints MULTIPLE Records
***** Detail section of report ENDS here *******
****** max page height ENDS here *****
section 5
field 43 field 44
....
...
----
Section 11
Field 125 field 126 field 127
...
...
..
so, I have a problem aligning textboxes and ALSO with the max page height, although it works fine in HTML preview, it only prints the detail section when I export to PDF.
I need to find a way to align the fields as well as split up the fields into multiple pages so it works both in HTML preview and Preview mode, and of course when exporting to PDF.
Thanks.
0
Chris @ Intrinsic
Top achievements
Rank 1
answered on 08 Sep 2011, 09:58 PM
Also, would it be possible to set the keyboard to move an object such as a textbox only one pixel at a time? That would make it easy to align each textbox visually.
0
Hi Chris,
You can place each section in a Panel item and align them inside that panel. This way you would separate the layout of the textboxes in different sections - more information is provided in the Design Considerations for Report Item Layout help article.
About your last inquiry - it depends on the resolution you're using and that is why in order to move an item with 1 px, you would have to set the UnitOfMeasure and SnapGridSize properties to utilize pixels, turn on snapping to gridlines and snaplines and find the correct zoomMode of the report designer that would work for you.
Regards,
Steve
the Telerik team
You can place each section in a Panel item and align them inside that panel. This way you would separate the layout of the textboxes in different sections - more information is provided in the Design Considerations for Report Item Layout help article.
About your last inquiry - it depends on the resolution you're using and that is why in order to move an item with 1 px, you would have to set the UnitOfMeasure and SnapGridSize properties to utilize pixels, turn on snapping to gridlines and snaplines and find the correct zoomMode of the report designer that would work for you.
Regards,
Steve
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>