Hi,
Im running in some very strange behavior with the radcombobox (Telerik 2011Q2).
I have 2 dropdownlist and a button. Changing the selecting of the 1st box alters the content in the 2nd box. the button does nothing special, just a postback.
When i change the selection of the first box, the 2nd box gets filled correctly. But when i push the button, the contents of the 2nd box gets alterd, the fist 2 items dissapear and the last 2 get copied and are added to the back.
aspx
vb.net
The storedprocedures always cough up the correct data.
When useing radListBox, same problem, enabeling or disabeling the checkboxes makes no difference, when useing conventional dropdownlists, no problems whatsoever.
Please help.
Im running in some very strange behavior with the radcombobox (Telerik 2011Q2).
I have 2 dropdownlist and a button. Changing the selecting of the 1st box alters the content in the 2nd box. the button does nothing special, just a postback.
When i change the selection of the first box, the 2nd box gets filled correctly. But when i push the button, the contents of the 2nd box gets alterd, the fist 2 items dissapear and the last 2 get copied and are added to the back.
aspx
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadComboBox ID="ddlbInstituut" runat="server" AutoPostBack="true" /> <telerik:RadComboBox ID="ddlbAfdeling" runat="server" CheckBoxes="true" Width="300px" /> <asp:Button ID="Button1" runat="server" Text="Button" />vb.net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Page.IsPostBack = False Then vulInstituutDropdown() End If End Sub Sub vulInstituutDropdown() Dim dsInstituten As DataSet dsInstituten = SqlHelper.ExecuteDataset(Conn, "SP_GetInstituut") With ddlbInstituut .DataSource = dsInstituten .AutoPostBack = True .ID = "ddlbInstituut" .DataTextField = "inst_omschrijving" .DataValueField = "inst_id" .DataBind() End With vulAfdelingDropdown() End Sub Private Sub vulAfdelingDropdown() Dim dsAfdelingen As DataSet dsAfdelingen = SqlHelper.ExecuteDataset(Conn, "SP_GetAfdelingen", ddlbInstituut.SelectedValue) With ddlbAfdeling .Controls.Clear() .ID = "ddlbAfdeling" .DataSource = dsAfdelingen .DataTextField = "afde_omschrijving" .DataValueField = "afde_id" .DataBind() End With End Sub Protected Sub ddlbInstituut_SelectedIndexChanged1(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlbInstituut.SelectedIndexChanged vulAfdelingDropdown() End SubThe storedprocedures always cough up the correct data.
When useing radListBox, same problem, enabeling or disabeling the checkboxes makes no difference, when useing conventional dropdownlists, no problems whatsoever.
Please help.