| private void Grid_ContextMenuOpening(object sender, Telerik.WinControls.UI.ContextMenuOpeningEventArgs e) |
| { |
| if (e.ContextMenuProvider.GetType() == typeof(GridColumnGroupCellElement)) |
| { |
| GridColumnGroupCellElement element = (GridColumnGroupCellElement)e.ContextMenuProvider; |
| GridViewColumnGroup group = element.Group; // this is always null |
| RadMenuItem customItem = new RadMenuItem("Hide Group", "HideGroup"); |
| customItem.Tag = group; |
| customItem.Click += new EventHandler(Grid_ContextMenu_HideGroup_Click); |
| e.ContextMenu.Items.Add(customItem); |
| } |
| } |
I have changed this post from the original to focus on the main problem I am having. I am using the newest version of VSB and Winforms in a C# application. The app uses a RadShapedForm with ThemeManager and the repository.xml and theme.xml loaded into it. My RadTitleBar uses three images for the min, max and close buttons as well as three more mouse over buttons. While the gradient fills work on the title bar none of the images show up in the VS2008 designer or at run time. Also I noticed that after loading the saved repository back in the VSB the images are missing there as well. Why aren’t the images showing up in Visual Studio and why does the VSB loose the location of the images after it is saved. I am guessing the VSB is not saving the correct location of the images for some reason but I have no way to check it because the string is not readable. Can anyone help?
I have attaches two images, one is the missing images on the visual studio designer and the other ris the missing images in th VSB after loading the saved repository.
| public class Reservation |
| { |
| public int ReservationId { get; set; } |
| public DateTime RequestDate { get; set; } |
| public string RequestedByName { get; set; } |
| public DateTime StartDate { get; set; } |
| public DateTime EndDate { get; set; } |
| public string Comments { get; set; } |
| public int RoomId { get; set; } |
| } |