I have a UltraWebGrid with dynamically created HtmlDropDown in one of the columns.
DropDown is created fine with no errors. DropDown does not drop or expand.
Dropdown data has a link which is supposed to open a new window and that does not work either.
I removed the link part and created a simple html input downdown.
same code works fine with version 2005 vol2. does not work with 2008 vol 1 and 2008 vol 3.
here is the code...
Dim sb As New StringBuilder
' Create the SELECT (dropdown) object HTML text
sb.Append(" <select ")
sb.Append("style='")
sb.Append("FONT-SIZE: 8pt;")
sb.Append("FONT-FAMILY: Arial;")
sb.Append("HEIGHT: 9px;WIDTH: 100px'")
sb.Append("HEIGHT: 10px;WIDTH: 100px'")
‘sb.Append(" onchange='ShowRemarks(this.value);'")
sb.Append(">" )
' starting constructing the dropdown
sb.Append("<option value='-' selected>" )
sb.Append(SH.AR (intLineIdx).Misc (0).RCode)
sb.Append("<option value=01>01</option>" )
sb.Append("</option>" )
sb.Append("<option value='-'>--------------------</option>" )
sb.Append("<option value=02>02</option>" )
' BEGIN creating OPTION object HTML text for each remark code
'Dim ClR As QB.ClR
''For Each ClR In ClR
'For Each ClR In SH.AR(intLineIdx).Misc
' sb.Append("<option value='")
' sb.Append(ClR.RCode)
' sb.Append("|")
' sb.Append(oTblWS.Rows(intLineIdx).Item(0).ToString)
' sb.Append("'")
' sb.Append(">")
' sb.Append("</option>")
'Next
' END creating OPTION object HTML text for each remark code
sb.Append(“</select>" )
any help would be appreciated. thanks.
Hello,
I would suggest use built-in column type dropdown.
More information you can see here:
http://help.infragistics.com//NetAdvantage/ASPNET/2009.2/CLR3.5/?page=WebGrid_Displaying_and_Storing_Values_with_ValueLists.html
Hope it helps you.
thanks for the reply. Iam creating the html drop down in a table first and then Iam setting the source
of the Grid. I have created a sample solution that replicates my problem. How can I attach that here. thanks.
I too have the same problem.
The Dropdownlist does not expand.
any suggestions
this is the solution I got from Infragistics support.
sb.Append(" <select ") sb.Append("style='") sb.Append("FONT-SIZE: 8pt;") sb.Append("FONT-FAMILY: Arial;") sb.Append("HEIGHT: 9px;WIDTH: 100px'") sb.Append(" onMouseUp='event.cancelBubble = true;' ") sb.Append(" onMouseDown='event.cancelBubble = true;'") sb.Append(">")
onMouseUp, onMouseDown added event.cancel Bubble
thanks.
I am having same problem i tried with above solution but i am getting error event is not undefined javascript error.Please help me anyone.
I am having the same problem i tried with above solution but i am getting error "Event;bubble" not supporting in javascript.Please help me anyone.
The above bubble event no need to implement.This option is enough to work the dynamic HTML ddl control under the UltraWebGrid column.
CellClickActionDefault="RowSelect" under DisplayLayout tag is enough.