Hi Telerik
I wana to set DelayFilter for FilterTemplate in RadGrid but when i set that , it's not work !
why this not work and how to set it ?
please help me .
Thanks
<
telerik:GridTemplateColumn
DataField
=
"ProvinceName"
HeaderText
=
"ProvinceName"
SortExpression
=
"ProvinceName"
UniqueName
=
"ProvinceName"
FilterDelay
=
"1000"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ClientItemTemplate
>
#=ProvinceName#
</
ClientItemTemplate
>
<
FilterTemplate
>
<
telerik:RadTextBox
ID
=
"txtProvinceName"
runat
=
"server"
>
<
ClientEvents
OnValueChanged
=
"ProvinceNameChenged"
></
ClientEvents
>
</
telerik:RadTextBox
>
<
telerik:RadScriptBlock
ID
=
"rsbProvinceName"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function ProvinceNameChenged(sender, args) {
var gv = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
if (args.get_newValue() == "") {
gv.filter("ProvinceName", null, "NoFilter");
return;
}
gv.filter("ProvinceName", args.get_newValue(), "StartsWith");
}
</
script
>
</
telerik:RadScriptBlock
>
</
FilterTemplate
>
</
telerik:GridTemplateColumn
>