4 Answers, 1 is accepted
Hello Sergey,
RadVirtualGrid cells support only text content. However, there is a feature request to allow placing any UI control in the cell. You can find it in the feedback portal where you can track its status.
In the meantime, you can try the CellDecorationNeeded event which allows you to set the background of each cell. In the event handler, you can create an ImageBrush and assign it to the Background of the cell.
Regards,
Martin Ivanov
Progress Telerik
Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).
Hello Sergey,
This is correct. You will need to include the brush in the Brushes collection of the OnOverlayBrushesNeeded event. Also, keep in mind that the approach with the ImageBrush will work properly only if you have a different ImageBrush instance for each cell with an image. If there are several cells that share the same ImageBrush instance, the image will get stretched across the cells region.
Regards,
Martin Ivanov
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/.