I have a radCombobox that has multiple items in the dropwdown list, when users check the items they want to see the dropwdownlist should post back and return the items they want to see but it is not doing anything and I dont know if I am getting the items properly or its just not posting back.
Here is the HTML
Here is my filldatasource
this is my attempt to get the grid to post back using the selected index change of the combobox and the itemchecked but neither work.
Here is the HTML
<telerik:RadComboBox ID="ddlRadTeam" runat="server" Width="160px" BackColor="White" ForeColor="Black" EmptyMessage="Pick Team" AutoPostBack="true" CheckBoxes="true" EnableCheckAllItemsCheckBox="true"></telerik:RadComboBox>Here is my filldatasource
Protected Sub myRadGrid_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles myRadGrid.NeedDataSource Dim SqlWhere As String = "" Dim items As String = "" If rblActive.SelectedValue = Nothing Then SqlWhere = " where r.bitActive = 1" rblActive.SelectedValue = 1 ElseIf rblActive.SelectedValue = "All" Then SqlWhere = "" ElseIf rblActive.SelectedValue = "0" Then SqlWhere = " where r.bitActive = 0" ElseIf rblActive.SelectedValue = "1" Then SqlWhere = " where r.bitActive = 1" rblActive.SelectedValue = 1 End If If fillGrid = True Then If ddlRadTeam.CheckedItems.Count > 0 Then For Each item As RadComboBoxItem In ddlRadTeam.Items If item.Selected Then items += item.Value & "," End If Next End If If ddlRadTeam.SelectedItem.Checked = True And rblActive.SelectedValue = "All" Then SqlWhere = " where r.intTeamId IN (" & items & ")" ElseIf ddlRadTeam.Items.Count > 0 Then SqlWhere += " and r.intTeamId IN (" & items & ")" End If End If sql = "sql select " & SqlWhere myRadGrid.DataSource = getData(sql) pnlGrid.Visible = True End Subthis is my attempt to get the grid to post back using the selected index change of the combobox and the itemchecked but neither work.
Protected Sub ddlRadTeam_ItemChecked(sender As Object, e As RadComboBoxItemEventArgs) Handles ddlRadTeam.ItemChecked fillGrid = True myRadGrid.Rebind() End Sub Protected Sub ddlRadTeam_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs) Handles ddlRadTeam.SelectedIndexChanged fillGrid = True myRadGrid.Rebind() End Sub