All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
"server"
AllowFilteringByColumn
"True"
EnableLinqExpressions
"false"
AutoGenerateColumns
"true"
DataSourceID
"SqlDataSource1"
OnPreRender
"RadGrid1_PreRender"
>
</
asp:SqlDataSource
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
SelectCommand="SELECT * FROM [Customers]" />
protected
void
RadGrid1_PreRender(
object
sender, EventArgs e)
{
if
(!Page.IsPostBack)
GridColumn column = RadGrid1.MasterTableView.GetColumnSafe(
"Country"
);
column.CurrentFilterFunction = GridKnownFunction.Contains;
column.CurrentFilterValue =
"Germany"
;
RadGrid1.MasterTableView.FilterExpression =
"([Country] LIKE \'%Germany%\') "
RadGrid1.MasterTableView.Rebind();
}