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
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/.
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.
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/.
Thank Vladimir Stoyanov.
Your solution works. Thanks for guiding me .