I create a RadGrid in code behind which works perfectly fine.
Now I need (additionally to the server-side filtering when clicking a filter menu entry) to add client-side filtering when the user presses the "Enter" key.
This also works perfectly fine, because I add to every GridFilteringItem an OnKeyPress event handler to the filter-TextBox in ItemCreated:
textBox.Attributes.Add(
"onkeypress"
,
string
.Format(
"doFilter(this, event,'{0}', Telerik.Web.UI.GridFilterFunction.Contains)"
, Grid.ClientID));
My Problem:
I cannot find a possibility to add the event handler to the filter-TextBox of the GridDateTimeColumn.
How can I do that?