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

Tile Content binding and Content Template Selector . Actual content value showing at bottom of tile

4 Answers 124 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Kamran asked on 22 Jan 2021, 05:16 PM

I bound RadTileList's Tile Item with Number type field. and assigned ContentTemplateSelector. Idea is I want to load different Templates based on bound Content.

ContentTemplateSelector is working fine, and I am getting required result. Only minor issue I found that Content value (number) appears at bottom before Template loads i.e. before animation I can see Coent value which is (1,2,3,4).

 

I noticed the same issue in WPF demo NASDAQ tile. For reference I am attaching screenshot and yellow highlighted actual content value. Is there any way to hide actual Content value. 

 

4 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 27 Jan 2021, 02:34 PM

Hello Kamran,

Thank you for the shared pictures. 

Can you share how the RadTileList is defined and populated with data? You can also share how the ContentTemplateSelector is defined and applied and any custom styles used. This will hopefully allow me to get a better understanding of your exact scenario and try to suggest a viable option for it.

I am looking forward to your reply.

Regards,
Vladimir Stoyanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
answered on 25 Feb 2021, 07:18 AM

Hi Vladimir Stoyanov,

 

Sorry for late reply. Unfortunately I changed tiles contents as business requirements. For reference I followed the same approach as described in Telerik WFP demo. That's why I shared the screen shot of demo also.

 

Regarding Content style, I used simple template to render charts. These templates doen't had custom styles. Content bound to Tile item was type of int. which is changed by timer control. Based on content value, I am choosing content template.

 

If you need source code. then I can get from history. As we had changed our implementation, but I am keen to resolve it.

0
Accepted
Vladimir Stoyanov
Telerik team
answered on 01 Mar 2021, 03:51 PM

Hello Kamran,

Thank you for the update.

Please, find a sample project demonstrating a possible way to apply the ContentTemplate of a tile during the animation, which happens when its Content is updated. What I have done is to inherit the Tile class and override its OnContentTemplate method and set the ContentTemplate inside it before the animation is started. 

I hope you find this helpful.

Regards,
Vladimir Stoyanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
answered on 03 Mar 2021, 09:57 AM

Thank Vladimir Stoyanov.

Your solution works. Thanks for guiding me .

Tags
TileList
Asked by
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Vladimir Stoyanov
Telerik team
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Share this question
or