You can data bind RadTileList on the client to a RadClientDataSource control since Q2 2014. This functionality is provided out of the box through the server-side ClientDataSourceID property which also has its client-side counterpart - the set_clientDataSourceID() method.
Client-side data binding means fewer postbacks, easier integration with various data services and a more flexible client-side development.
You can use the DataBindings inner property to control the relation between the data item and the created tiles' properties, just like when using server-side data binding. You can set the tile type, group, the peek template, or in the case of RadContentTemplateTile the content template of the created tiles.
If tiles are already present in the Tile List the AppendClientDataBoundItems property controls whether they will be removed prior to data binding.
There are five client-side events raised in the binding process.
-
tilePeekTemplateDataBound is raised after the peek template set in the DataBindings.ClientTilePeekTemplate property is bound to the data item.
-
tileContentTemplateDataBound is raised after the content template set in the DataBindings.ContentTemplateTileBinding.ClientContentTemplate property is bound to the data item
-
tileCreating is raised before a tile is created. This event is useful for canceling the tile creation and modifying the object which is passed as a properties argument to the $create method.
-
tileDataBound is raised after a tile is created, but before it is appended to a certain group. Here the new tile can be further configured or the index of the group to which it will be added can be changed.
-
tileListDataBound is raised after the data binding process is over.
In this demo you can see how the RadTileList is bound to a RadClientDataSource and you can filter it through the Filter food by category dropdown. This operation is performed on the client and does not require a postback or a call to the service. You can use the Hide foods starting with input to prevent tile creation for certain data items.
In the simplest setup, you only need to provide an array of JSON literals to the RadTileList and define the corresponding data source field names in the DataBindings inner property.
You can find examples and read more details in the following article: