I ve an issue with a listview.
Im doing that when delete button is clicked in the listview:(code simplified, it delete as it should)
Protected Sub rlvCarts_ItemCommand(sender As Object, e As RadListViewCommandEventArgs)
If e.CommandName = RadListView.DeleteCommandName Then
mylistItem.items.RemoveAt(e.CommandArgument.ToString)
BindData()
End If
End Sub
Protected Sub BindData()
rlvCarts.DataSource = mylistItem.items
rlvCarts.DataBind()
End Sub
The issue comes when deleteting it will perform itemdatabound twice (but listview prerender once).
How does it come? How can I avoid that?