Selected Tiles using Javascrip

2 posts, 0 answers
  1. Wiliam
    Wiliam avatar
    8 posts
    Member since:
    Aug 2012

    Posted 25 Oct Link to this post

    Is there a way to check and uncheck all Tiles through javascript? And also it has a way to be able to remove a Tile through javascript or code-behind? I'm waiting
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 27 Oct Link to this post

    Hello Wiliam,

    Each tile exposes a set_selected(value, triggerEvents) method, as listed in their API reference: http://docs.telerik.com/devtools/aspnet-ajax/controls/tilelist/tiles/client-side-programming/basetile-object.

    You can get all tiles from the tile list object through its get_allTiles() method: http://docs.telerik.com/devtools/aspnet-ajax/controls/tilelist/client-side-programming/tilelist-object.

    Removing tiles is not allowed on the client because it will break the client state of the control and then the server code (control recreateion, viewstate loading, client state loading).

    On the server, however, you can modify the tiles collections to match your needs. One of the easiest ways to do that is to data bind the tile list and modify the data source, then rebind it.

    Regards,

    Marin Bratanov
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top