protected virtual string GetItemText(TItem item, Lookup <TItem> lookup) { object textValue = (lookup.TextFormatter != null ? lookup.TextFormatter(item) : ((dynamic)item)[lookup.TextField]); return(textValue == null ? "" : textValue.ToString()); }
protected virtual bool GetItemDisabled(TItem item, Lookup <TItem> lookup) { return(false); }
protected virtual List <TItem> GetItems(Lookup <TItem> lookup) { return(FilterItems(CascadeItems(lookup.Items))); }