This question is locked. New answers and comments are not allowed.
Hi,
I am loading my grid with the below Itemsource context
I am loading my grid with the below Itemsource context
RadGridView.ItemsSource = _context.Payments;
_context.Load(_context.TaxPaymentsQuery);
Now I have a Radiobutton with the selection I need to update my Grid with filtered Data. Below is my code which I had written in Checked Event of RadioButton.
private
void RadioButton_ActiveChecked(object sender, RoutedEventArgs e)
{
RadGridView.ItemsSource = _context.Payments;
_context.Load(_context.PaymentsQuery(
).Where(p=> p.IsActive == 1));
RadGridView.Items.Refresh();
}
But my Grid is not getting refreshed. Please can someone help me clearing my Grid data during load and then filter my grid when I selected the radio button.
Thanks,
Hemanth