Hi,
I'm trying to set the filter from code behind. When the code below runs to get the GridFilteringItem, I'm getting an "Index was out of bounds" exception. Any ideas what's causing this?
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
try
{
GridFilteringItem filterItem = RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)[0] as GridFilteringItem;
GridColumn col = RadGrid1.MasterTableView.GetColumn("AssignedTo");
col.CurrentFilterValue = hfProgAssign.Value;
filterItem.FireCommandEvent("Filter", new Pair("StartsWith", "AssignedTo"));
JC
I found a resolution--there was a bug populating the dat. Once I fixed this issue the event executed properly.