or
| //Create the calendar |
| RadCalendar radCalendar = new RadCalendar(); |
| radCalendar.Orientation = Orientation.Horizontal; |
| radCalendar.DayNameFormat = Telerik.WinControls.UI.DayNameFormat.Full; |
| radCalendar.ShowRowHeaders = false; |
| radCalendar.ShowColumnHeaders = true; |
| radCalendar.AllowMultipleView = true; |
| radCalendar.MultiViewColumns = 2; |
| radCalendar.ThemeName = "Office2007Blue"; |
| radCalendar.Size = new Size(462, 275); |
| radCalendar.SelectionChanged += new EventHandler(radCalendar_SelectionChanged); |
| //Create the Calendar Host |
| _calendarHost = new ToolStripControlHost(radCalendar); |
| _calendarHost.Height = radCalendar.Height; |
| _calendarHost.Width = radCalendar.Width; |
| //Create the drop down |
| _dropDown = new ToolStripDropDown(); |
| _dropDown.Width = radCalendar.Width; |
| _dropDown.Height = radCalendar.HeaderHeight; |
| _dropDown.VisibleChanged += new EventHandler(_dropDown_VisibleChanged); |
| _dropDown.Items.Add(_calendarHost); |
radgridview1.GridElement.BeginUpdate()
For Each row As GridViewDataRowInfo In radgridview1.Rows
row.IsExpanded =
True
Next
radgridview1.GridElement.EndUpdate()
The hierachical rows and child rows are showing fine. However symbol for collapsing is missing. I am using Vista theme.
In another form using same properties and theme ^ and upside down ^ shows up for expanding and collapsing. What could be the reason?
Regards ... DP
| Dim oFillSelector As New ClassSelector("TabFill") |
| Dim oTabFill As FillPrimitive = TryCast(oFillSelector.GetSelectedElements(Me.tsTabs.SelectedTab)(0), FillPrimitive) |
| If oTabFill.BackColor <> Color.Yellow Then |
| oTabFill.BackColor = Color.Yellow |
| oTabFill.BackColor2 = Color.Yellow |
| oTabFill.BackColor3 = Color.Yellow |
| oTabFill.BackColor4 = Color.Yellow |
| End If |
| For i as int32 = 0 to Me.tsTabs.Items.Count -1 |
| Dim oFillSelector As New ClassSelector("TabFill") |
| Dim oTabFill As FillPrimitive = TryCast(oFillSelector.GetSelectedElements(Me.tsTabs.Items(i))(0), FillPrimitive) |
| oTabFill.ResetValue(FillPrimitive.BackColorProperty) |
| oTabFill.ResetValue(FillPrimitive.BackColor2Property) |
| oTabFill.ResetValue(FillPrimitive.BackColor3Property) |
| oTabFill.ResetValue(FillPrimitive.BackColor4Property) |
| Next |