or
| Dim nestedViewItems As GridItem() = tableView.GetItems(GridItemType.Item) |
| For Each nestedViewItem As GridItem In nestedViewItems |
| If nestedViewItem.DataItem("AdditionalAddresses") > 0 Then |
| Dim NestedGridItem As GridNestedViewItem = NestedGridItems(nestedViewItem.ItemIndex) |
| Dim cell As TableCell = NestedGridItem.NestedTableViews(0).ParentItem("ExpandColumn") |
| cell.Controls(0).Visible = False |
| nestedViewItem.Visible = False |
| End If |
| Next |
Thanks
Neal
| public class FileExplorer : Telerik.Web.UI.RadFileExplorer |
| { |
| /// <summary> |
| /// Raises the <see cref="E:Init"/> event. |
| /// </summary> |
| /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> |
| protected override void OnInit(EventArgs e) |
| { |
| InitializeControls(); |
| this.GridContextMenu.ItemClick += new RadMenuEventHandler(GridContextMenu_ItemClick); |
| base.OnInit(e); |
| } |
| /// <summary> |
| /// Initializes the controls. |
| /// </summary> |
| private void InitializeControls() |
| { |
| this.Configuration.ContentProviderTypeName = typeof(Sunnova.Web.UI.Controls.SunnovaFileStreamContentProvider).AssemblyQualifiedName; |
| this.Configuration.ViewPaths = new string[] { "/app_files" }; |
| this.Configuration.UploadPaths = new string[] { "/app_files" }; |
| this.Configuration.MaxUploadFileSize = 2000000; |
| RadMenuItem rmi = new RadMenuItem("Unzip"); |
| this.GridContextMenu.Items.Add(rmi); |
| foreach (RadMenuItem item in this.GridContextMenu.Items) |
| if (item.ID != rmi.ID) |
| item.PostBack = false; |
| } |
| void GridContextMenu_ItemClick(object sender, RadMenuEventArgs e) |
| { |
| "Here must the item be requested." |
| } |
| } |
