protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); if (ListViewAlbums.IsItemInserted) { ListViewAlbums.FindControl("Button1").Visible = false; } else { ListViewAlbums.FindControl("Button1").Visible = true; } }
void RadAjaxPanel1_AjaxRequest(object sender, AjaxRequestEventArgs e) { int index = Convert.ToInt32(e.Argument); if (!ListViewAlbums.SelectedIndexes.Contains(index)) { ListViewAlbums.SelectedIndexes.Clear(); ListViewAlbums.SelectedIndexes.Add(index); ImagesListView.EditIndexes.Clear(); ListViewAlbums.Rebind(); ImagesListView.Rebind(); } }