Completed
Last Updated: 13 Nov 2015 09:19 by ADMIN
ADMIN
Marin Bratanov
Created on: 21 Jul 2014 10:52
Category: UI for ASP.NET AJAX
Type: Feature Request
0
FIX Cancelling OnClicking for a RadTile inside a RadTileList does not cancel the event
The best approach is to handle the OnClientTileClicking event for the TileList and determine whether it should be cancelled: http://www.telerik.com/help/aspnet-ajax/tilelist-client-side-events-onclienttileclicking.html.

A possible way to change the behavior is to pass the _cancel field value from the Clicking event of the Tile to the TileClicking event of the TileList with the following override.

			var $T = Telerik.Web.UI;
			$T.RadTileList.prototype._onTileClicking = function (tile, args)
			{
				var eventArgs = new $T.RadTileListCancelEventArgs(tile, args.get_value());
				eventArgs.set_cancel(args.get_cancel()); //the change - pass the _cancel argument to the TileList handler too
				this.raiseEvent("tileClicking", eventArgs);
				args.set_cancel(tile._isDragged || eventArgs.get_cancel());
				args.set_value(eventArgs.get_value());
				tile._isDragged = false;
			}
0 comments