I have a RadGridView bound to an Obersvable Collection of an object with ID and Name. After closing the window, I save the selected IDs in an list. When the user reopens the form to select more items, I want to show all the items but disable the rows based on the IDs that were previously selected (those on the IDs list).
How can I achieve that?
I think that the best solution is a behavior and not a style, but I don't know how to do it.
I am not sure what do you mean by disabling the IDs. Do you want to disable the previously selected rows? If so, you can make them read-only. To do so, you can create a new bool property in your row's model and data bind it to the columns using the IsReadOnlyBinding property as shown here: https://docs.telerik.com/devtools/wpf/controls/radgridview/columns/how-to/read-only-rows-cells
With this setup, you can set the property of the rows' data items when you re-open the form in order to make them read-only.