| function enableEditorButtonOutdent(editor) |
| { |
| var toolAdapter = editor.get_toolAdapter(); |
| var outdentBtn = toolAdapter.getToolByName("Outdent"); |
| if(outdentBtn != null) |
| outdentBtn.set_enabled(false); |
| } |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <html> |
| <head> |
| <script> |
| <!-- |
| function foo(){ //v4.01 |
| if(5>5){} |
| } |
| //--> |
| </script> |
| </head> |
| <body> |
| </body> |
| </html> |

Dim strSelect As String
Dim dr As DataRow
Dim objDictionary As Dictionary
strSelect =
"-- Please Select --"
objDDL.DataSource = dt
objDDL.DataTextField = strText
objDDL.DataValueField = strValue
objDDL.DataBind()
Dim objDDLItem As Telerik.WebControls.RadComboBoxItem = New Telerik.WebControls.RadComboBoxItem("-- " & objDictionary.GetLabel(Labels.PLEASESELECT) & " --", "-1")
objDDL.AppendDataBoundItems =
True
objDDL.Items.Insert(0, objDDLItem)
As a result, I get the items duplicated (1 list of items, then the other). I've noticed that the .DataBound event fires twice for the combo box. When I view the Call Stack for the second .DataBound event, there is no source for the call.
If I set AppendDataBoundItems = false, then the .DataBound event only gets fired once, and I only have 1 list of items. However, I do not get the "-- Please Select --" item added.
I've also tried to add the "-- Please Select --" item to the combo box (as in numerous examples), but I still get the same results.
Thanks!