AUTHOR: Eyup Yusein
DATE POSTED: December 12, 2017
DESCRIPTION The GridDateTimeColumn of RadGrid provides convenient built-in range filtering functionality:
<
telerik:GridDateTimeColumn
DataField
=
"OrderDate"
DataType
"System.DateTime"
FilterControlAltText
"Filter OrderDate column"
HeaderText
SortExpression
UniqueName
EnableRangeFiltering
"true"
EnableTimeIndependentFiltering
>
</
Since this requires 2 picker controls to be generated, the width of the filtering cell may increase beyond its standard size.
SOLUTION
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridFilteringItem)
GridFilteringItem filterItem = e.Item
as
GridFilteringItem;
(filterItem[
OrderDate
].Controls[3]
LiteralControl).Text =
"<br />To: "
;
}
Resources Buy Try