I am trying to help the user select filter values by clicking on a grid row and then programmatically loading those values into the filter columns. I have two problems. My columns are automatically generated and columns are not found in the foreach loop. Secondly, the CurrentFilterValue does not seem to accept values.
Thanks for any assistance.
protected void radGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
if (e.CommandName == "RowClick" && e.Item is GridDataItem)
{
foreach (GridColumn column in radGrid1.MasterTableView.Columns)
{
string IDx = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex][column.UniqueName].ToString();
column.CurrentFilterValue = IDx;
}
}
}