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

Change GridViewCell Style with Material Theme

5 Answers 140 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mahdi
Top achievements
Rank 1
Mahdi asked on 11 Nov 2019, 10:55 AM

Hi, I want to change my GridViewCell FocusBrush, I try this but don't work:

 

    <Style TargetType="{x:Type telerik:GridViewCell}" BasedOn="{StaticResource GridViewCellStyle}">
        <Setter Property="materialControls:MaterialAssist.PressedBrush" Value="{StaticResource BaseColor}"/>
        <Setter Property="materialControls:MaterialAssist.FocusBrush" Value="{StaticResource BaseColor}"/>
        <Setter Property="materialControls:MaterialAssist.MouseOverBrush" Value="{StaticResource BaseColor}"/>
    </Style>

 

I want to change Line's color bottom of cell

 

 

5 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Stoyanov
Telerik team
answered on 14 Nov 2019, 09:06 AM

Hello Mahdi,

Thank you for the provided picture. 

You can utilize the CurrentBorderBrush property of the GridViewCell in order to achieve what you are going for.  Here is what I have in mind:

 <Style TargetType="telerik:GridViewCell" BasedOn="{StaticResource GridViewCellStyle}">
            <Setter Property="CurrentBorderBrush" Value="Red"/> 
</Style>

I hope you find this helpful. 

Regards,
Vladimir Stoyanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Mahdi
Top achievements
Rank 1
answered on 16 Nov 2019, 10:51 AM

Hello Vladimir Stoyanov,
It was very easy, thanks a lot

excuse me, how can I change GridViewGroupPanel background color and GridView ScrollBar Color?

0
Mahdi
Top achievements
Rank 1
answered on 16 Nov 2019, 02:10 PM
Hello Vladimir Stoyanov,
It was very easy, thanks a lot
excuse me, how can I change GridViewGroupPanel background color and GridView ScrollBar Color?
0
Vladimir Stoyanov
Telerik team
answered on 20 Nov 2019, 12:45 PM

Hello Mahdi,

Please, check out the following articles for more information on the matter:

- GroupPanelForeground and GroupPanelBackground

- Styling Scrollbars

Hope this helps.

Regards,
Vladimir Stoyanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Mahdi
Top achievements
Rank 1
answered on 25 Nov 2019, 05:58 AM

Hello Vladimir Stoyanov,

Thanks a lot.


Tags
GridView
Asked by
Mahdi
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Mahdi
Top achievements
Rank 1
Share this question
or