This is a migrated thread and some comments may be shown as answers.

Default a RadComboBox Filter

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 1
Christopher asked on 20 Aug 2015, 04:35 PM

When I try to set a default filter on combobox filter the grid filters correctly but checkboxes in the filter do not display correctly. The filter says "All Items" instead of the two selected items.

 

01.protected void gridviewRequests_PreRender(object sender, EventArgs e)
02.{
03.     gridviewRequests.MasterTableView.FilterExpression = "(ErrorStatus = 'Critical Errors' OR ErrorStatus ='Non-critical Errors')";
04. 
05.     GridFilteringItem filterItem = gridviewRequests.MasterTableView.GetItems(GridItemType.FilteringItem)[0] as GridFilteringItem;
06.     RadComboBox combo = (RadComboBox)filterItem.FindControl("ErrorStatusFilter");
07.                    combo.Items.FindItemByValue("No Errors").Checked = false;
08. 
09.     gridviewRequests.MasterTableView.Rebind();
10.}

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 24 Aug 2015, 08:35 AM
Hello Christopher,

I suggest that you check the explanation provided in the following post:
http://www.telerik.com/forums/how-to-persist-dropdownlist-selected-index-and-value-on-postback-from-radgrid-filtertemplate#GW3MyQLmVEmy8XzsmrHzeQ

After making your decision, we can proceed further with the specific implementation.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Christopher
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or