change backgroundColor in clientside

2 replies. Last post: November 8, 2010 1:55 AM by Martin Lie
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Johnny LeyvaMember

good day. A questions how change the backgroundColor of the webgrid in clientside

i do function in javascript

function webfgrid_onafteradd()

{

var wgDetalle = ISGetObject("wgDetalle");

 wgDetalle.GetElement.style.backgroundColor = "RED";

 wgDetalle.GetActiveEditCell().element.style.fontWeight = "BOLD";

}

 

in serverside use this code

Protected Sub wgDetalle_AddRow(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.RowEventArgs) Handles wgDetalle.AddRow

Sub wgDetalle_AddRow(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.RowEventArgs) Handles wgDetalle.AddRow If Convert.ToDecimal(txtMontoDistribuible.Text) = Convert.ToDecimal(txtTotalDistribuido.Text) Then

   wgDetalle.BackColor = Drawing.Color.Red  Else    wgDetalle.BackColor = Drawing.Color.Blue

   wgDetalle.ClientAction.RefreshAll

 End If End Sub

 

 

but not result

All times are GMT -5. The time now is 10:32 PM.
Previous Next