migrating from asp.net listview to RadListView

2 posts, 0 answers
  1. Ranjan
    Ranjan avatar
    38 posts
    Member since:
    Sep 2011

    Posted 10 Jan 2013 Link to this post

    I was using asp.net DataList to display image previously. Now I want to use RadListView control so that i can provide reorder the image. I was using following line of code in listview
      <div id="<%# Container.ItemIndex+1 %>" class='<%# Eval("CssStyle") %>'>
    This line gives error in RadListView. Then what is substitute of "Container.ItemIndex" in RadListView. Please tell me if anything else we have to do when we migrate from asp.ner datalist to RadListView.
  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 21 Jan 2013 Link to this post

    Hello Ranjan,

    You can use Container.DataItemIndex.

    I hope that helps.
Back to Top