I am not sure why this does not work ...
I get an error on the args.getvalue() of Object doesn't support property or method 'get_value'
I get an error on the args.getvalue() of Object doesn't support property or method 'get_value'
<
telerik:GridBoundColumn
DataField
=
"Name"
FilterControlAltText
=
"Filter Name column"
FooterText="<h6>Count: " Aggregate="Count" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"
ShowFilterIcon="False" HeaderText="Name" SortExpression="Name" UniqueName="Name"
FooterStyle-HorizontalAlign="Left" AllowSorting="true" AllowFiltering="true"
ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="false">
<
FilterTemplate
>
<
telerik:RadTextBox
ID
=
"RadName"
runat
=
"server"
Width
=
"100px"
ClientEvents-OnValueChanged
=
"NameChanged"
>
</
telerik:RadTextBox
>
<
telerik:RadScriptBlock
ID
=
"RadScriptBlock2"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function NameChanged(sender, args) {
var txtbox = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
txtbox.filter("Name", args.get_value(), "StartsWith");
}
</
script
>
</
telerik:RadScriptBlock
>
</
FilterTemplate
>
</
telerik:GridBoundColumn
>