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

migrating from asp.net listview to RadListView

1 Answer 64 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Ranjan
Top achievements
Rank 1
Ranjan asked on 10 Jan 2013, 01:50 PM
Hello,
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.

1 Answer, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 21 Jan 2013, 07:32 PM
Hello Ranjan,

You can use Container.DataItemIndex.

I hope that helps.
Tags
ListView
Asked by
Ranjan
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Share this question
or