Specifically a RadFilterDropDownEditor, but I will also need date editors as well. I can't find any good documentation explaining how to set something up. My current strategy is based off of the code here: http://docs.telerik.com/devtools/aspnet-ajax/controls/filter/field-editors/programmatic-creation. I have to set the field editor's values with a list, but using the code below, there are no values in the drop down. I have also seen the code here but it is a completely different and unexplained approach, and involving data tables is, in my opinion, bad.
Here is essentially what I have:
<
telerik:RadFilter
runat
=
"server"
ID
=
"rfFilter"
RenderMode
=
"Lightweight"
FilterContainerID
=
"RadGrid1"
ShowApplyButton
=
"False"
ViewStateMode
=
"Enabled"
OnApplyExpressions
=
"rfFilter_ApplyExpressions"
/>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
RadFilterDropDownEditor districtFilter = new RadFilterDropDownEditor();
rfFilter.FieldEditors.Add(districtFilter);
statusFilter.FieldName = "District";
statusFilter.DataType = typeof(string);
var list = new ArrayList(GetDistrictList());
statusFilter.SetEditorValues(list);
}
}