Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

review request for 'Applying Default Filter on Initial Load' doc

$
0
0
Hello Dan,

Can you please confirm that you are following all the suggestions from the below help article:
As you can notice, you need to set the FilterExpression, as well as the CurrentFilterFunction and the CurrentFilterValue properties of the column you need to filter on:
protected void RadGrid1_PreRender(object sender, System.EventArgs e)
{
    if (!Page.IsPostBack)
    {
        RadGrid1.MasterTableView.FilterExpression = "([Country] LIKE \'%Germany%\') ";
        GridColumn column = RadGrid1.MasterTableView.GetColumnSafe("Country");
        column.CurrentFilterFunction = GridKnownFunction.Contains;
        column.CurrentFilterValue = "Germany";
        RadGrid1.MasterTableView.Rebind();
    }
}

If the issue persists, please provide the code-behind and the markup of the column you want to filter.


Regards,
Konstantin Dikov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>