Ok,
I'm working in VS2005. And I'm using Atlas.
The dropdownlist is binded directly to a ObjectDataSource, this is binded to
a Entity than takes data from de DataBase.
And the General Function that I use to write the javascrit functions in all
the controls is:
Private Function SetOnOFControl(ByRef objLinea As Object, ByVal
nombreControl As String, _
Optional ByVal estilo As String = "etiquetaValue", Optional ByVal estiloSel
As String = "etiquetaValueSel") As Boolean
Try
CType(objLinea.FindControl(nombreControl), Object).CssClass = estilo
CType(objLinea.FindControl(nombreControl),
Object).Attributes.Add("onfocus", "this.className='" & estiloSel & "'")
CType(objLinea.FindControl(nombreControl),
Object).Attributes.Add("onblur", "this.className='" & estilo & "'")
Return True
Catch ex As Exception
Return False
End Try
End Function
Private Function SetOnOfControlesGV(ByRef gvRow As GridViewRow) As Boolean
flagresp = SetOnOFControl(gvRow, "ddlGrupo")
Return True
End Function
Thanks.
"Alexey Smirnov" <alexey.smirnov@gmail.comwrote in message
news:1171961248.903025.56150@v45g2000cwv.googlegro ups.com...
Quote:
On Feb 20, 9:14 am, "Gorka" <g...@gabiges.comwrote:
Quote:
>I think yes. The dropdownlist is binded on the page load, I say, before I
>click the dropdownlist the dropdownlist is full of listitems.
>
you said you have to click two times to display the items.
>
Can you post here the code (for the dropdown and actions related to
it)?
>