Completed
Last Updated: 05 May 2020 18:24 by ADMIN
Release R2 2020
product
Created on: 20 Apr 2020 12:38
Category: UI for ASP.NET AJAX
Type: Bug Report
1
ClientStateLogPlayer.cs - Telerik.Web.UI.ClientStateLogPlayer<>.Remove(ControlItemCollection, index) issue

An error will occur when the Index equals the number of items in the collection

private static ClientOperation<T> Remove(ControlItemCollection items, int index)
{
	if (index < 0 || index > items.Count) // should be >= instead
		return null;
	var item = items[index];
	items.RemoveAt(index);

	var operation = new ClientOperation<T> {Item = (T) item, Type = ClientOperationType.Remove};

	return operation;
}

0 comments