InvalidOperationException when tapping header

2 posts, 0 answers
  1. Matthew
    Matthew avatar
    5 posts
    Member since:
    Aug 2010

    Posted 17 Jul 2011 Link to this post

    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).
  2. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 20 Jul 2011 Link to this post

    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!

  3. DevCraft banner
Back to Top