This question is locked. New answers and comments are not allowed.
Hello,
my problem is the following. I set a radGridView.ItemsSource with an List<object>. But i can't set the selectedItem untill the dataloaded event is fired. Is there a way to manual fire the dataloaded event.
The reason why want to do this is because i have chained 6 grids together with a filter event. The selected row on grid 1 is the filter for grid2. The selected row on grid 2 is the filter for grid 3 etc.
this is the function that supplies the filtering. This works fine but just not untill the second grid has opened once. Help!
my problem is the following. I set a radGridView.ItemsSource with an List<object>. But i can't set the selectedItem untill the dataloaded event is fired. Is there a way to manual fire the dataloaded event.
The reason why want to do this is because i have chained 6 grids together with a filter event. The selected row on grid 1 is the filter for grid2. The selected row on grid 2 is the filter for grid 3 etc.
this is the function that supplies the filtering. This works fine but just not untill the second grid has opened once. Help!
public void SetFilterParentId(int id, string filterDescription) { CurrentFilter = filterDescription; radGridView1.FilterDescriptors.Clear(); radGridView1.FilterDescriptors.Add( new FilterDescriptor() { IsCaseSensitive = false, Member = "AccountLevel2TotalId", Operator = FilterOperator.IsEqualTo, Value = id }); if ((radGridView1.Items.Count > 0) && (radGridView1.SelectedItem == null)) { radGridView1.SelectedItem = radGridView1.Items[0]; } else { AccountLevel3Total item = (AccountLevel3Total)radGridView1.SelectedItem; if (item == null) { { if (OnFilterChanged != null) OnFilterChanged(this, new FilterChangedEventArgs(-1, filterDescription + Definitions.FILTER_SEPERATOR + Definitions.NO_FILTER)); } } //else // if (OnFilterChanged != null) // OnFilterChanged(this, new FilterChangedEventArgs(item.Id)); } }