This question is locked. New answers and comments are not allowed.
Hi,
I asked about this in other thread but I believe that this deserves for own one.
I'm trying to bind custom objects to RadGanttView. I know that such objects should either inherit from GanttTask class or implement IGanttTask interface.
The first option is very easy - just inherit from GanttTask and add desired properties. When I do that, everything works ok.
Second option isn't so simple - when I'm trying to implement IGanttTask interface, RadGanttView loads and is visible, but when I put mouse cursor over any task, IE debugger window pops up and message is shown:
SCRIPT5022: Unhandled Error in Silverlight Application
Code: 4004
Category: ManagedRuntimeError
Message: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
ved System.Windows.ResourceManagerWrapper.GetResourceForUri(Uri xamlUri, Type componentType)
I wonder why is that when I inherit from the class, everything is ok, but when I implement interface, problem occurs. Maybe there are some tricks that I'm not aware of?
Thank you in advance for the answer
Paweł
I asked about this in other thread but I believe that this deserves for own one.
I'm trying to bind custom objects to RadGanttView. I know that such objects should either inherit from GanttTask class or implement IGanttTask interface.
The first option is very easy - just inherit from GanttTask and add desired properties. When I do that, everything works ok.
Second option isn't so simple - when I'm trying to implement IGanttTask interface, RadGanttView loads and is visible, but when I put mouse cursor over any task, IE debugger window pops up and message is shown:
SCRIPT5022: Unhandled Error in Silverlight Application
Code: 4004
Category: ManagedRuntimeError
Message: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
ved System.Windows.ResourceManagerWrapper.GetResourceForUri(Uri xamlUri, Type componentType)
I wonder why is that when I inherit from the class, everything is ok, but when I implement interface, problem occurs. Maybe there are some tricks that I'm not aware of?
Thank you in advance for the answer
Paweł