18 Answers, 1 is accepted
I'm not sure if this is exactly what you want to achieve, but try this to replace part of your code in the row formatting event
hope that helps
The dash style just applies the type of border (dash, dot etc..).
However, it looks like you need to apply your formatting to the cell, not the row. This would be done in the CellFormatting Event rather than the RowFormatting event.
Hope this helps
Yes ! Actually I would like to make the whole row flashing...not only a cell is flashing...But I can't made it work at all...How to achieve the dot flashing for a row ?
Here's a sample for when you click on a Row.
Hope that helps
it looks pretty good ! Million Thanks !
Attached the result ;-)
Lastly, Just ask your advice...Instead of 4 rows flashing by its own.... combine them flashing together to make as 1 big row (consists of 4 rows) flasing ? If it is become more complex... I rather to leave it and use the current approach.
This is probably possible, however, there would be complications. If there were 2 or more rows selected, then you would need to turn off the top or bottom borders to create the look of a single border covering all rows. On top of this, if rows were not all selected at the same time, then the flash rate would appear at different times giving a disjointed look when it is meant to look like one selected selection.
I hope this explains
Can I request for a vb.net equivalent of code.
Thanks, we would like to use the flashing when in cells that fails validation.
I haven't been able to replicate this. Can you post a full sample please, using the format code block that shows this happening and I'll be happy to take a look at it for you
We are still not able to reproduce this issue. Please, could you prepare a sample application and send it to us. We will try to locate the issue and to find a proper solution.
I am looking forward to your project.
All the best,
the Telerik team
I changed my approach... actually, I would like to click a button and hightlight some rows...e.g. let's say row 7 and row 9 within a grid.
How can I acheive it instead of control the flashing by RowFormatting ?
For this task you again need the RowFormatting event. In order to change the colors on demand you need to call the Update method of the TableElement passing the GridUINotifyAction.StateChanged value. This will fire the RowFormatting event and with a boolean flag set in the button_Click event handler and consumed by the RowFormatting event you can make your rows take your color. A similar on-demand scenario is demonstrated for cells in the Formatting cells on demand section in this article.
I hope this helps.
the Telerik team