Unplanned
Last Updated: 16 Nov 2022 09:31 by ADMIN
David
Created on: 16 Nov 2022 09:23
Category: TileList
Type: Feature Request
1
RadTileList Keyboard support

RadImageTile takes focus but does not respond to any attempt to reproduce MouseClick through keyboard.
1 comment
ADMIN
Doncho
Posted on: 16 Nov 2022 09:31

RadImageTile as a part of the RadTileList currently has no implementation for built-in keyboard support.

As a workaround, you can use some custom JavaScript to achieve a certain behavior.

For instance, tabindex attributes can be added to the Tiles so they can get the focus and subscribe to the keypress event of the DOM element representing the Tiles to trigger click() on certain key codes.

Here is a sample code you can use as an idea:

var $ = $telerik.$;
$(document).ready(function(){
    $('.RadTile').each(function(){
        $(this).attr("tabindex","0");
        $(this).keypress(function(event){if(event.which == 13) this.click();});
    })
})

Kind regards,
Doncho
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/.