Is there a way for me to highlight the cell with a background when it's selected?
By default, the row highlight is completely suppressed by setting the background (attached screenshot)
Thanks
3 Answers, 1 is accepted
0
Vanya Pavlova
Telerik team
answered on 15 Aug 2014, 07:38 AM
Hi Huy,
Thank you for contacting us.
Looking at the example you referred, the behavior could be considered as expected.
If you take a look at the default template of GridViewRow, you may notice an element DataCellsPresenter. This element is responsible for drawing cells in each type of row.
Visually this element is rendered on the top of all elements, as part of GridViewRow's template.
CellStyleSelector example uses the default WPF AccentBrush from our QSF-UI for WPF.
In case you need to apply a background to a cell and to persist the default highlight of a row you should use a color, which allows transparency:
May you verify how this corresponds to your needs?
Regards,
Vanya Pavlova
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
I didn't know that we can set a transparent color to the background
Thanks alot :)
0
Vanya Pavlova
Telerik team
answered on 18 Aug 2014, 07:23 AM
Hello Huy,
Thank you for getting back to us. I'm glad to hear that I was able to help.
If you encounter any problems do not hesitate to contact us.
Have a great day.
Regards,
Vanya Pavlova
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.