public static ASPxComboBox MarkItemsAsDisabled <T>(this ASPxComboBox source, Func <T, bool> predicate)
        {
            var dataSource = source.DataSource as IEnumerable <T>;

            if (dataSource != null)
            {
                var filteredDataSource = dataSource.Where(predicate);

                source.JSProperties["cpDisabledItems"] = filteredDataSource
                                                         .ToDictionary(x => source.FetchInternalValue(x), x => true);
            }

            return(source);
        }