Unplanned
Last Updated: 18 Jun 2020 15:11 by ADMIN
ADMIN
Attila Antal
Created on: 10 Aug 2018 07:15
Category: Gantt
Type: Feature Request
1
Implement a string indexer or a method to get column by unique name in RadGantt
Implement a string indexer or a method to get column by unique name in RadGantt. 

Example  of string indexer
//
// Summary: This class represents collection of Telerik.Web.UI.GanttBoundColumn.
//
public class ColumnCollection : BaseCollection<GanttBoundColumn>
{
	public ColumnCollection(){...}
	public ColumnCollection(IGantt owner){...}
	
	public GanttBoundColumn this[string ColumnName]
	{
	   //considering columnCollection is internal variable holding list of columns.
		return columnCollection.Where(c => c.UniqueName == ColumnName).FirstOrDefault();
	}
}

Example of a method can be similar to RadGrid's GetColumn and GetColumnSafe methods: https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/Common/using-the--getitems-getcolumn-and-getcolumnsafe-methods.
0 comments