This question is locked. New answers and comments are not allowed.
I have a RadGridView that displays Orders and a RowDetails template containing another RadGridView showing the OrderDetails records for the Order. This works great.
Now all I want to do is filter the OrderDetails records so the user can see some or all of the OrderDetail records based on the post date selection at the top of the form. I thought this would be simple but I'm spinning my wheels. I first created a FilterDescriptor for the PostDate member in xaml and was hoping to bind the value to a property containing the selected Post Date in my ViewModel. I think this would work but it doesn't as I finally realized the datacontext of the OrderDetails grid is really the "Order" and not my ViewModel (so it can't "see" my PostDate value).
Am I heading in the wrong direction and\or are there better ways to accomplish what I am trying to do?
Any help would be greatly appreciated!
Note: I know I can turn filtering on in the RadGridView for the Post Date column and the user can use the little filter icon but I do not want to do this. I have a combobox control at the top of the grid for the user to select from instead.
Now all I want to do is filter the OrderDetails records so the user can see some or all of the OrderDetail records based on the post date selection at the top of the form. I thought this would be simple but I'm spinning my wheels. I first created a FilterDescriptor for the PostDate member in xaml and was hoping to bind the value to a property containing the selected Post Date in my ViewModel. I think this would work but it doesn't as I finally realized the datacontext of the OrderDetails grid is really the "Order" and not my ViewModel (so it can't "see" my PostDate value).
Am I heading in the wrong direction and\or are there better ways to accomplish what I am trying to do?
Any help would be greatly appreciated!
Note: I know I can turn filtering on in the RadGridView for the Post Date column and the user can use the little filter icon but I do not want to do this. I have a combobox control at the top of the grid for the user to select from instead.