Hello, I was wondering if I can get some help implementing a fillter in a radgrid inside a web part.
Our clients do not like the built-in filter that is bundled with telerik Radgrid. Instead, I created a text box and a submit button for them to enter text and then push submit to filter the grid.
For the life of me, I can't get my grid to filter in my webpart during the button click postback,
Bellow is code that handles by button click to filter
Our clients do not like the built-in filter that is bundled with telerik Radgrid. Instead, I created a text box and a submit button for them to enter text and then push submit to filter the grid.
For the life of me, I can't get my grid to filter in my webpart during the button click postback,
Bellow is code that handles by button click to filter
void btnfilter_Click(object sender, EventArgs e)
{
lblSearch.Text = txtSearch.Text.ToString() ;
oGrid.MasterTableView.FilterExpression = "([URLwMenu] LIKE \'%" + lblSearch.Text + "%\') ";
GridColumn column = oGrid.MasterTableView.GetColumnSafe("Campaign");
column.CurrentFilterFunction = GridKnownFunction.Contains;
column.CurrentFilterValue = lblSearch.Text;
oGrid.MasterTableView.Rebind();
}
any assistance will be greatly appreciated.
-roland