I'm using hierarchy to display course information, each row can be expanded to show a nested row of data for the course description. Functionally it looks great. Aesthetically I know the users are going to complain as the main grid rows alternate, but the nested rows are always the same color. They are always the the first color of whatever skin I'm using as there is only one row in each nested grid.
Is there an easy way to make the expanding row background match the color of it's parent row? This would be useful as it would make the data for each course look contained.
Is there an easy way to make the expanding row background match the color of it's parent row? This would be useful as it would make the data for each course look contained.
| <telerik:RadPageView ID="Elective" runat="server"> |
| <telerik:RadGrid ID="GridElective" runat="server" Skin="WebBlue" AutoGenerateColumns="false" PageSize="20" AllowPaging="True" AllowSorting="true"> |
| <MasterTableView DataKeyNames="CRN"> |
| <DetailTables> |
| <telerik:GridTableView DataKeyNames="CRN" ShowHeader="false" BorderWidth="0" AllowPaging="false"> |
| <ParentTableRelation> |
| <telerik:GridRelationFields DetailKeyField="CRN" MasterKeyField="CRN" /> |
| </ParentTableRelation> |
| <Columns> |
| <telerik:GridBoundColumn HeaderText = "CRN" DataField = "CRN" Visible="false"/> |
| <telerik:GridBoundColumn HeaderText = "Description" DataField = "Description"/> |
| </Columns> |
| </telerik:GridTableView> |
| </DetailTables> |
| <Columns> |
| <telerik:GridBoundColumn HeaderText = "CRN" DataField = "CRN" Visible="false"/> |
| <telerik:GridBoundColumn HeaderText = "Course" DataField = "Course"/> |
| <telerik:GridBoundColumn HeaderText = "Section" DataField = "Section" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"/> |
| <telerik:GridBoundColumn HeaderText = "Title" DataField = "Title"/> |
| <telerik:GridHyperLinkColumn HeaderText = "Syllabus" DataNavigateUrlFields="Syllabus" Text="<img src='pdf-icon_sm.png' alt='Download' border='0'/>" Target="_blank" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"/> |
| <telerik:GridBoundColumn HeaderText = "Session" DataField = "Session" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"/> |
| <telerik:GridBoundColumn HeaderText = "Professor(s)" DataField = "Professor(s)"/> |
| <telerik:GridBoundColumn HeaderText = "Units" DataField = "Units" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"/> |
| <telerik:GridBoundColumn HeaderText = "Schedule" DataField = "Schedule"/> |
| <telerik:GridBoundColumn HeaderText = "Specialization" DataField = "Specialization"/> |
| </Columns> |
| </MasterTableView> |
| <SortingSettings SortedBackColor="Azure"/> |
| <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true" ></PagerStyle> |
| </telerik:RadGrid> |
