Hi,
I added a RadCombobox to a page with Datasource pointed to a LINQDataSource. Then I add a Javascript to set its value on load:
It works fine, but then I add the following code to add a blank line to the Combobox:
Then the set_value script doesn't works anymore.
Any advice? Thanks.
Andy
I added a RadCombobox to a page with Datasource pointed to a LINQDataSource. Then I add a Javascript to set its value on load:
<script type="text/javascript"> var combox = $find("<%=dfDocuments.clientID %>"); combox.set_value('3'); </script>It works fine, but then I add the following code to add a blank line to the Combobox:
Protected Sub dfDocuments_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles dfDocuments.DataBound Dim li As New RadComboBoxItem li.Value = "0" li.Text = "--Select--" li.Selected = False dfDocuments.Items.Insert(0, li) End SubThen the set_value script doesn't works anymore.
Any advice? Thanks.
Andy