I'm trying to databind a combobox for a filter on a radgrid
. I can't seem to be able to find the filter control when i try the following, nothing happens.
foreach (GridFilteringItem filterItem in InitAlerts.MasterTableView.GetItems(GridItemType.FilteringItem))
{
RadComboBox initLoans = (RadComboBox)filterItem.FindControl("InitLoan");
var loannumber = (from DataRow dRow in initTable.Rows
select new { loan_number = dRow["loan_loan_number"] }).Distinct().ToList();
initLoans.DataSource = loannumber;
initLoans.DataBind();
Label1.Text = initLoans.ID.ToString();
}
Also, this is just running in Page_Load
, if that makes a difference...