Set defaultvalue on OnAfterItemSelected webcombo

2 replies. Last post: October 27, 2010 10:10 AM by Johnny Leyva
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Johnny LeyvaMember

i have integrate a webgrid with a webcombo, the webcombo have tree columns

i want that in the event OnAfterItemSelected of webcombo set defaultvalue any columns of webgrid <

<ClientSideEvents OnAfterItemSelected="Valor_Catalog"></ClientSideEvents>

---------- function  javascript ---------------------

function Valor_Catalog() {var wcArticulo = ISGetObject("wcArticulo");  if(wcArticulo.Value != "")

 { aspnetForm.ctl00_Contentplaceholder1_hddIdcatalog.value=wcArticulo.Value; }

 else

 { aspnetForm.ctl00_Contentplaceholder1_hddIdcatalog.value = 0; }

  var row = wcArticulo.GetSelectedRow();   var wiPrecio = ISGetObject("wiPrecio");

  var wgDetalle = ISGetObject("wgDetalle");

  wgDetalle.RootTable.Columns[6].DefaultText = row.cells[3].innerText;

  wgDetalle.RootTable.Columns[6].DefaultValue = row.cells[3].innerText;

}

 

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