TaskCardElement.DescriptionImage.ImageAlignment Missing

1 Answer 22 Views
TaskBoard
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Martin Hamilton asked on 18 Oct 2021, 06:47 PM

Is there a way to set the DescriptionImage Image Alignment to TopLeft?

If not, then the TaskCardElement.DescriptionImage.ImageAlignment property is Missing

Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 18 Oct 2021, 06:50 PM

Sorry, I forgot to also mention that the TextImageRelation property is also missing...

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 20 Oct 2021, 12:37 PM

Hello, Martin,

RadTaskCardElement offers the DescriptionElement which gives you access to the TextImageRelation. Thus, you can control the text and image order for the description:

        Dim card As RadTaskCardElement = New RadTaskCardElement()
        card.TitleText = "ListView improvements"
        card.DescriptionText = "Research phase"
        card.DescriptionImage = My.Resources.nancy22
        card.DescriptionImageLayout = ImageLayout.None
        card.DescriptionElement.TextImageRelation = TextImageRelation.ImageBeforeText

Note that every RadTaskCardElement contains 9 containers: 3 x 3. This allows adding different elements top-left, top-center, top-right, middle-left, middle-center, middle-right, bottom-left, bottom-center, bottom-right. You can apply image to the title element and thus put the image top left:

        Dim card As RadTaskCardElement = New RadTaskCardElement()
        card.TitleText = "ListView improvements"
        card.TitleElement.Image = My.Resources.nancy22 
        card.TitleElement.TextImageRelation = TextImageRelation.ImageBeforeText

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.
Tags
TaskBoard
Asked by
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or