HI,
I am searching a row in ultrawebgrid and highlighting with "yellow" color.
I am highlighting the row from code behind.
e.g
rows.Style.BackColor = System.Drawing.Color.FromArgb(255, 255, 185)
Now my requirement is that after clicking outside row color should be change.I am doing this throuugh javacript.
row.Element.className = "deactiveColor"
"deactiveColor" is my classname.
I tried
activeRow.Element.style.backgroundColor = "Red";
and
activeRow.Element.bgColor = 'red';
but this is not working.
Hello juliep,
Thank you for posting in the community.
A possible straightforward approach may be to change the selected row style of your grid if your application allows that (i.e. if single selection is enabled).
In order to change the backcolor of an activated row through javascript, the CSS has to be applied on the respective row's cells, and the previously activated row's color should be reverted. This may be achieved by handling the AfterRowActivate clientside event. For instance (using a bit of jQuery):
Please let me know if this helps.
Hi,
Thanks for reply but this is not what I want.
after clicking outside grid view means anywhere on page then the color should be change.