Hi everybody,
I am trying to filter a column with multiple selected values.
I use <FilterTemplate> with custom RadComboBox (ComboBox + Checkbox for each line). For example, in column "Language", user can check & select "French" AND "German" in same time.
With the following code, I can easly filter for one language :
But how can I manage to filter for more than one language ? If I retreive two selected values by user (French + German), how can I configure filterItem ?
Perhaps it is easy to do, but I'm just a novice in Telerik API, so help is really appreciated ...
Thank you
I am trying to filter a column with multiple selected values.
I use <FilterTemplate> with custom RadComboBox (ComboBox + Checkbox for each line). For example, in column "Language", user can check & select "French" AND "German" in same time.
With the following code, I can easly filter for one language :
protected void _Default_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) |
{ |
GridFilteringItem filterItem = (GridFilteringItem)RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)[0]; |
ViewState["comboValue"] = e.Value; |
(filterItem["Language"].Controls[1] as TextBox).Text = e.Value; |
filterItem.FireCommandEvent("Filter", new Pair("EqualTo", "Language")); |
} |
But how can I manage to filter for more than one language ? If I retreive two selected values by user (French + German), how can I configure filterItem ?
Perhaps it is easy to do, but I'm just a novice in Telerik API, so help is really appreciated ...
Thank you