dialog validation support
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Pilz.UI.Telerik.Dialogs;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Pilz.UI.Telerik.Extensions.Extensions;
|
||||
|
||||
|
||||
@@ -19,8 +19,7 @@ public static class RadListDataItemCollectionExtensions
|
||||
var values = Enum.GetValues(typeof(T));
|
||||
var items = new List<RadListDataItem>();
|
||||
|
||||
if (format == null)
|
||||
format = v => Enum.GetName(typeof(T), v);
|
||||
format ??= v => Enum.GetName(typeof(T), v);
|
||||
|
||||
if (clearCollection)
|
||||
@this.Clear();
|
||||
|
||||
Reference in New Issue
Block a user