Hi,
I am using radfilter on a radlistview bound to a datasource. On pageload I use the following code to default show the filteritem Name from the datasource:
if (!IsPostBack)
{
RadFilterTextFieldEditor editor = new RadFilterTextFieldEditor();
RadFilterPartner.FieldEditors.Add(editor);
if (!IsPostBack)
{
editor.FieldName = "NAME";
editor.DataType = typeof(string);
RadFilterContainsFilterExpression filter = new RadFilterContainsFilterExpression("NAME");
filter.Value = "";
RadFilterPartner.RootGroup.Expressions.Add(filter);
}
}
My question is how I can set the focus on the NAME filteritem on pageload, so the user can start typing the filtertext, instead of manually click the filteritem and then typing the filtertext?
-Kurt