flash or blinking row

Rocio

Hello, I am newbie with telerik controls, and I am doing a app with a GridView, I would like to make some rows blink or flash, but I can't find anything about it, Is there an easy way?
Hope somebody can help me.
Thanks!

Pavel Pavlov

I guess you need to make the row blink based on a certain value within .

In general the recommended approach would be to set a style for the row using a RowStyleSelector.
Within the style targeting GridViewRow I believe you may set an animation to toggle the background color thus the blinking effect.

Rocio

Hello Pavel, thanks for you quick response, I used the RowStyleSelector for my background color, but when I applied it the scroll or the "next Page" navigation didn't work, so I decided to change the background color on the RowLoaded event with:

e.Row.Background = newSolidColorBrush(Colors.Blue);

I was thinking in something like that for the blinking, but I can try your recomendation, could you be more specific? because I haven't worked with style selectors, and any little example would be great
Thanks a lot!

Rocio

Hello Pavel, thanks for your response, I have consulted telerik examples about how to add this style to my grid, and I am a bit confused, I have to create a <Grid.Resources> section, and put the style in there:

But I am not sure about how to apply it to some columns, the examples uses Conditional style selectors, in my case I only need one rule, because I only have one style to apply, but I don't know what the first line refers to, and in my case what to use as ConditionConverter, and how to "say" to it wich rows have to be blinking

Rocio

Hello Pavel, I think I haven't explained myself properly, I'm sorry.
I have a grid with some columns, and depending on the value of the first column is how I decide if the entire row should blink or not.

I have read your example of Style Selectors, and I get that I have to create a class that inherits from StyleSelector, is it right? and in that class I have to override the SelectStyle method, depending on the item I have to return an style or the other, but I don't know how to create the style with the trigger and the animation programmatically like with the background color.
Thanks!

Maya

Do you want to change them runtime based on some condition or just change the value of white/red ?

Regards,
Maya
Telerik

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 Feedback Portal
and vote to affect the priority of the items

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.