This is a migrated thread and some comments may be shown as answers.

InvalidOperationException when tapping header

1 Answer 42 Views
JumpList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matthew
Top achievements
Rank 1
Matthew asked on 17 Jul 2011, 07:52 PM
I have a jumplist that is bound to List<T> where T is a C# object i have written. I use the DisplayMemberPath property to ensure the correct property of "T" is displayed in the list. Everything works as expected, unless I click the group header. When i click the group header, I receive an InvalidOperationException with a message "Can not set Item Template and DisplayMemberPath simultaneously". When I take off the DisplayMemberPath declaration, the control functions without any problems (except the text is obviously just the ToString of T).

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 20 Jul 2011, 02:51 PM
Hi Matthew,

Thanks for contacting us and for reporting this issue.

I would like to inform you that we have been able to reproduce this issue on our side. We have identified the reason for this exception and have logged it in our TODO system for fixing.

For the time until the fix is officially released, my suggestion is to stop using the DisplayMemberPath property and define a simple DataTemplate for your items which has a TextBlock in it that is bound to the same property you are using to visualize your business object.

Let me know if you need further assistance on this.

Greetings,
Deyan
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
JumpList
Asked by
Matthew
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or