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

Make RadGridView Transparent

6 Answers 348 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lukasz
Top achievements
Rank 1
Lukasz asked on 27 Oct 2016, 01:18 PM

Hi,

Is there any simple way to make whole RadGridView transparent?

I mean Headers, Rows, Vertical and Horizontal scrollbars, etc.

Setting "Background" property sets only data row area where no rows are created.

I am using 2015 Q3.

Thanks,

Ɓukasz

 

6 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 28 Oct 2016, 08:32 AM
Hello Lukasz,

I'm unsure about your exact requirements, but I believe simply setting RadGridView's Opacity property would result in the desired effect as it will propagate down the visual tree to all child elements.

Could you please give this a try and let me know if it works for you? If that is not the case, please provide more details on the exact result you're trying to achieve and I will gladly assist you further.

Regards,
Dilyan Traykov
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
0
Lukasz
Top achievements
Rank 1
answered on 28 Oct 2016, 09:11 AM

Hi,

I would like to change background brush of all elements of RadGridView, but leave foreground parts intact. I tried to add Opacity but it is added to cell text values and images, column headers, scrollbars, etc.

 

 

 

0
Dilyan Traykov
Telerik team
answered on 28 Oct 2016, 10:46 AM
Hello Lukasz,

Unfortunately, there's no simple way to achieve the desired effect, other than traversing the visual tree and setting the desired properties for each individual element or defining the appropriate styles targeting the necessary elements.

Regards,
Dilyan Traykov
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
0
Lukasz
Top achievements
Rank 1
answered on 29 Oct 2016, 10:25 AM

It looks like it is:

<Grid Background="{telerik:Windows8Resource ResourceKey={x:Static telerik:Windows8ResourceKey.MainBrush}}" Opacity="0.85">
    <telerik:RadGridView>
    [...]
</Grid>

 

This code applies background color with opacity to all descending elements.

0
Lukasz
Top achievements
Rank 1
answered on 29 Oct 2016, 10:31 AM

Sorry, I posted it too fast. Here is a complete solution:

<Grid Background="{telerik:Windows8Resource ResourceKey={x:Static telerik:Windows8ResourceKey.MainBrush}}" Opacity="0.85">
    <telerik:RadGridView

            Background="Transparent"
              ColumnBackground="Transparent"

     >
    [...]
</Grid>

 

This way I can put a RadGridView and other elements on <Grid> with a little transparency.
0
Stefan
Telerik team
answered on 02 Nov 2016, 02:09 PM
Hello Lukasz,

We are glad that you have managed to find a solution that suits your needs. Thank you for sharing it with the community.

All the best,
Stefan X1
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Tags
GridView
Asked by
Lukasz
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Lukasz
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or