However binding to Dictionary collection presents an odd problem, telerik:RadGridViewCommands.Delete will no longer fire if I have a button in my column. In fact, the button is set to a disable state regardless. See XAML:
If I use a List(Of T) (ObservableCollection), then the Delete will trigger and work as expected. The Telerik RadGridView just doesn't seem to want to allow a delete if bound to a Dictionary. So I still have a problem, any solution?
answered on 14 Dec 2013, 01:26 PM
The problem is that the Dictionarys Remove method takes only the key of the record you are trying to delete and the QueryableCollectionView passes the whole KeyValuePair resulting in either CanExecute to false, hence the disabled button, or an Argument exception when the command executes.
You can create your own custom command for deleting a dictionary record.
Hope this helps!
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely. Sign up for Free application insights >>