Hi,
I have bind the data in the grid from the
Here in this code filteration is server side but selection criteria is fixed,
so i need to set the selection criteria with use of the radgrid control selection criteria( like contains, not contains, NotFilter, StartWith, EndWith etc. ) any of the filter dropdownlist and filter value from the filter textbox in the radgrid control.
So, i have problem how to get the selected value from the filter dowpdownlist and filtered value from the filter Textbox of radgrid control, Kindly help me as soon as possible.
Thanks
Pankaj Tyagi
I have bind the data in the grid from the
rgStaffPhysicianDetails.DataSource = GetPhysicianDetail();
in the server side code. So please give me the details of how the apply the filtering with the use selected filter criteria and value get from the filter textbox in the radgrid control.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 (!Page.IsPostBack)
{
RadGrid1.MasterTableView.FilterExpression = "([Country] LIKE \'%Germany%\') ";
GridColumn column = RadGrid1.MasterTableView.GetColumnSafe("Country");
column.CurrentFilterFunction = GridKnownFunction.Contains;
column.CurrentFilterValue = "Germany";
RadGrid1.MasterTableView.Rebind();
}
}
Here in this code filteration is server side but selection criteria is fixed,
so i need to set the selection criteria with use of the radgrid control selection criteria( like contains, not contains, NotFilter, StartWith, EndWith etc. ) any of the filter dropdownlist and filter value from the filter textbox in the radgrid control.
So, i have problem how to get the selected value from the filter dowpdownlist and filtered value from the filter Textbox of radgrid control, Kindly help me as soon as possible.
Thanks
Pankaj Tyagi