Click or drag to resize
KaxComboBoxItemCollectionFindItem Method
Returns the first KaxComboBoxItem that matches the conditions defined by the specified predicate. The predicate should returns a boolean value.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public KaxComboBoxItem FindItem(
	Predicate<KaxComboBoxItem> match
)

Parameters

match
Type: SystemPredicateKaxComboBoxItem
The Predicate <> that defines the conditions of the element to search for.

Return Value

Type: KaxComboBoxItem
Examples
The following example demonstrates how to use the FindItem method.
void Page_Load(object sender, EventArgs e)
{
    KaxComboBox1.FindItem(ItemWithEqualsTextAndValue);
}
private static bool ItemWithEqualsTextAndValue(KaxComboBoxItem item)
{
    if (item.Text == item.Value)
    {
        return true;
    }
    else
    {
        return false;
    }
}
See Also