DataItemIndex throws System.NotImplementedException

4 posts, 0 answers
  1. Steve
    Steve avatar
    1 posts
    Member since:
    Aug 2008

    Posted 17 Feb 2010 Link to this post

    I'm using Telerik version 2009.3.1314.35.  I'm binding a RadListView control to a List of custom objects using .DataSource and .DataBind().  On submit, when I try to get the key values using item.DataItemIndex it throws a NotImplementedException and the item.DataItem object is null.  The strange thing is that the DataKeyValues array is fine and I can get the key value using item.DisplayIndex.  Any ideas why I would get this error?
  2. Rosen
    Admin
    Rosen avatar
    3235 posts

    Posted 18 Feb 2010 Link to this post

    Hello Steve,

    Indeed, as the exception implies the DataItemIndex property, you are trying to access is not implemented. You should use DisplayIndex instead.

    Greetings,
    Rosen
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Angie
    Angie avatar
    101 posts
    Member since:
    Jan 2008

    Posted 28 May 2010 Link to this post

    The problem with using DisplayIndex is that it does not take into account what page you are on if the listview is paged.  It would be helpful if this property were implemented.
  5. Rosen
    Admin
    Rosen avatar
    3235 posts

    Posted 31 May 2010 Link to this post

    Hi Angie,

    Indeed we have added implementation for the property in question. You may download next internal build and try it out.

    Regards,
    Rosen
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top