Hi,
I'm having an asp dropdownlist with selectedindexchanged event.. I'm having around 4-5 infragistics webddropdown multi select boxes, Whenever user selects options in multidropdown list and again selects the above normal asp dropdownlist, the items selected in the multidropdown should be cleared and initial value should be set to "Please Select"..
How can i implement this in asp dropdownlist selectedindexchanged event??
Can anyone please help me out as its bit urgent..
Thanks,
I'm using the above client side function, But this is not working..
<script type="text/javascript" language="javascript"> function SelectionChanged() { var dropdown = $find('<%=ddlSeaMulti.ClientID %>'); //unselect and inactivate the selected items while (dropdown.get_selectedItems().length > 0) { dropdown.get_selectedItems()[0].inactivate(); dropdown.get_selectedItems()[0].unselect(); } //set some default value in the dropdown's input field dropdown.set_currentValue("-Please Select-", true); } </script>
i cannot see any dropdown list values resetting.. Any suggestion please
Petar Ivanov"]Below is some sample code illustrating a sample clientside handler for the ASP dropdownlist's onchange event.
Thanks for the comeback..
I cannot find onchange event in asp dropdownlist,Below is my dropdown list.
<asp:DropDownList ID="ddlSearch" runat="server" AutoPostBack="True">
I even tried clearing the items from server side using WebDropdown1.ClearSelection();
Protected Sub ddlSearch_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ddlSearch.SelectedIndexChanged
ddlSeaMulti.ClearSelection()
End Sub
My requirement is i need to clear infragistics multi dropdown selection on asp dropdownlist selection changed event..
Hi pavanpuligandla,
Thank you for posting in the community.
A very similar scenario has been discussed at:
http://community.infragistics.com/forums/p/30177/161244.aspx
Below is some sample code illustrating a sample clientside handler for the ASP dropdownlist's onchange event.
Alternatively, the dropdown selection may be cleared on the server by calling the ClearSelection() method.
Hope this helps.
Any solution for deselecting the infragistics multidropdown list items whenever asp drodownlist selectedindex is changed??
Please share any scripts for this