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

Label horizontal flow

4 Answers 136 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Larry Marshall
Top achievements
Rank 1
Larry Marshall asked on 28 Sep 2015, 01:49 PM
Can anyone point me to a code sample of horizontal flow of items as described in this article? I cannot open the visual designer for the hyperlinked example at the bottom of the page.

4 Answers, 1 is accepted

Sort by
0
Larry Marshall
Top achievements
Rank 1
answered on 28 Sep 2015, 09:12 PM

OK, I finally was able to open the sample and get it to work.

 However, if I define my list as 3 across and I do not have a multiple of 3 objects, e.g. 5 objects, the last one renders as an empty label. Is there any way to supress this?

0
Stef
Telerik team
answered on 29 Sep 2015, 07:43 AM
Hi Larry,

You can use conditional formatting to hide borders and items if the running field's value is null.
The attached demo report illustrates the settings suggested above.


For anyone interested, the demo report uses the setting from How to: Create Multi-Column Report - Across the Page and Then Down.


I hope this information is helpful.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Larry Marshall
Top achievements
Rank 1
answered on 29 Sep 2015, 02:53 PM

Stef, thanks for the hint. However, I could not get this to work.

I have defined two items on a label, a picturebox and a textbox, both of which have a Solid BorderStyle and 1pt BorderWidth. The labels are arranged 3 across. When I pass a containing 47 items, the last one appears as two blank rectangles with borders.

I defined one of the Conditional Formatting rules as show in the attachment - either Null or <Blank> results in the same display as the attachment.

I have tried to set the Layout to not Visible, the Edges Border Default color to White, and the Line Style Color to White, but the borders still show. I have also tried to tick the Stop if True with the same result.

What am I missing?

0
Stef
Telerik team
answered on 30 Sep 2015, 09:41 AM
Hello Larry,

Please test to use the IsNull built-in function or "Is Null" in the expression part of the rule. The suggestion is illustrated in the modified report attached to my previous post.

Also check what styles are used for items to avoid messing report and external stylesheets with inline styles - Style Inheritance and Overriding.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Larry Marshall
Top achievements
Rank 1
Answers by
Larry Marshall
Top achievements
Rank 1
Stef
Telerik team
Share this question
or