I am using Infragistics 8.3 in Visual Studio 2008
I have a form that has an UltraWebGrid, and a UltraWebMenu configured as a popup menu.
Each row in the grid has a button that when clicked will display the popup menu. What I need to do is only once a user has clicked an item on the popup menu, then that row in the grid that launched the popup menu needs to have its background colour changed.
I have changed the following grid properties from default :
DisplayLayout.CellClickActionDefault: RowSelect
DisplayLayout.RowSelectorsDefault: No
DisplayLayout.SelectTypeRowDefault:Single
DisplayLayout.StationaryMargins: Header
DisplayLayout.TableLayout: Fixed
DisplayLayout.UseFixedHearers: True
I have set styles for
DisplayLayout.RowAlternateStyleDefault
DisplayLayout.RowSelectorStyleDefault
DisplayLayout.RowStyleDefault
DisplayLayout.SelectedRowStyleDefault
The javascript that I am using on the menu item click is as follows:
DoOpen(); var activeRow = igtbl_getActiveRow("<%= uwgK2Tasks.ClientID %>");activeRow.Element.style.backgroundColor = "Red";
But the background colour of the row does not change.
Any help appreciated
try:
activeRow.Element.bgColor = 'red';