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

Selected Tiles using Javascrip

1 Answer 25 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Wiliam
Top achievements
Rank 1
Wiliam asked on 25 Oct 2016, 12:56 PM
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

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 27 Oct 2016, 08:14 AM

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.
Tags
TileList
Asked by
Wiliam
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or