This is a migrated thread and some comments may be shown as answers.

How to change the color of that particular corner?

2 Answers 65 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Muzaffar
Top achievements
Rank 1
Muzaffar asked on 06 Jun 2011, 07:49 AM
Hi i have made a grid and has changed the color successuly except that corner please let me know how i can access that corner to change the color please find the attached image to get the idea of corner. I am also attaching the code of grid too.

 

 

 

<telerik:RadGridView x:Name="radGrd" DataContext="{Binding}" Width="325"

 

 

 

 

ItemsSource="{Binding ElementName=stopItemsIndicatorDomainDataSource, Path=Data}"

 

 

 

 

AutoGenerateColumns="False" IsReadOnly="True" FontFamily="Verdana" FontSize="10"

 

 

 

 

VerticalAlignment="Stretch" RowIndicatorVisibility="Collapsed"

 

 

 

 

ShowGroupPanel="False"

 

 

 

 

ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Hidden"

 

 

 

CanUserFreezeColumns="False" AutoExpandGroups="True" GroupRowStyle="{StaticResource GroupRowStyle}"

 

 

 

GroupPanelItemStyle="{StaticResource widgetGridViewGroupPanelItemStyle}" GroupPanelForeground="White" AlternationCount="2" >

 

 

 

 

<telerik:RadGridView.GroupPanelBackground>

 

 

 

 

<ImageBrush ImageSource="/BalancedScoreCardDemo;component/Images/StarImages/tr_bg_1.png"></ImageBrush>

 

 

 

 

</telerik:RadGridView.GroupPanelBackground>

 

 

 

 

 

<telerik:RadGridView.AlternateRowStyle>

 

 

 

 

<Style TargetType="telerik:GridViewRow">

 

 

 

 

<Setter Property="Background">

 

 

 

 

<Setter.Value>

 

 

 

 

<SolidColorBrush Color="White">

 

 

 

 

</SolidColorBrush>

 

 

 

 

</Setter.Value>

 

 

 

 

</Setter>

 

 

 

 

</Style>

 

 

 

 

</telerik:RadGridView.AlternateRowStyle>

 

 

 

 

<!--<telerik:RadGridView.GroupRowStyle>

 

 

<Style TargetType="telerik:GridViewGroupRow">

 

<Setter Property="Background">

 

<Setter.Value>

 

<ImageBrush ImageSource="/BalancedScoreCardDemo;component/Images/StarImages/tr_bg_2.png"></ImageBrush>

 

</Setter.Value>

 

</Setter>

 

<Setter Property="FontFamily" Value="Verdana"></Setter>

 

<Setter Property="FontSize" Value="10"></Setter>

 

</Style>

 

</telerik:RadGridView.GroupRowStyle>-->

 

 

 

<telerik:RadGridView.RowStyle>

 

 

 

 

<Style TargetType="telerik:GridViewRow">

 

 

 

 

<Setter Property="Background" >

 

 

 

 

<Setter.Value>

 

 

 

 

<SolidColorBrush Color="#edf7fa"></SolidColorBrush>

 

 

 

 

</Setter.Value>

 

 

 

 

</Setter>

 

 

 

 

</Style>

 

 

 

 

</telerik:RadGridView.RowStyle>

 

 

 

 

<telerik:RadGridView.GroupDescriptors >

 

 

 

 

<telerik:GroupDescriptor Member="Name" SortDirection="Ascending" DisplayContent="Assessment Name" />

 

 

 

 

</telerik:RadGridView.GroupDescriptors>

 

 

 

 

<telerik:RadGridView.Columns>

 

 

 

 

<telerik:GridViewDataColumn Width="120" Header="Asess Name" HeaderCellStyle="{StaticResource widgetGridViewHeaderCellStyle}" DataMemberBinding="{Binding Name}" UniqueName="ItemNo"></telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Width="105" Header="Item No" HeaderCellStyle="{StaticResource widgetGridViewHeaderCellStyle}" DataMemberBinding="{Binding ItemNo}" UniqueName="ItemNo"></telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Width="100" Header="% Correct" HeaderCellStyle="{StaticResource widgetGridViewHeaderCellStyle}" DataMemberBinding="{Binding PercentCorrect}" UniqueName="PercentCorrect"></telerik:GridViewDataColumn>

 

 

 

 

</telerik:RadGridView.Columns>

 

 

 

 

</telerik:RadGridView>

 

 

 

 

</ScrollViewer>

 

 

 

 

<riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my1:StopItemsIndicator, CreateList=true}" Height="0" LoadedData="stopItemsIndicatorDomainDataSource_LoadedData" Name="stopItemsIndicatorDomainDataSource" QueryName="GETStopItemsIndicatorsQuery" Width="0">

 

 

 

 

<riaControls:DomainDataSource.DomainContext>

 

 

 

 

<my:STARSContext />

 

 

 

 

</riaControls:DomainDataSource.DomainContext>

 

 

 

 

</riaControls:DomainDataSource>

 

 

 

 

</Grid>

 

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 06 Jun 2011, 07:55 AM
Hello Muzaffar,

Please take a look at the following article illustrating the structure of the different indent cells and indicators. In your particular case, you may style the indicator in the header row.
 

All the best,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Muzaffar
Top achievements
Rank 1
answered on 06 Jun 2011, 08:03 AM
thanks for the quick reply

Can you let me know how can i access it in xaml when defining a grid.

THanks
Muzaffar Ali
Tags
GridView
Asked by
Muzaffar
Top achievements
Rank 1
Answers by
Maya
Telerik team
Muzaffar
Top achievements
Rank 1
Share this question
or