How to get the SearchBle Drop Down in asp.net
<div class="col-sm-8"> <asp:DropDownList class="form-control select2" Style="width: 100%;" ID="ddlBeneficiaryBank" EnableIncrementalSearch="true" CaseSensitiveSearch="true" runat="server" DataTextField="Text" OnSelectedIndexChanged="Bank_SelectedIndexChanged" > </asp:DropDownList> <asp:HiddenField runat="server" ID="hdnAccNoLimit" Value="0" /> <asp:HiddenField runat="server" ID="hdnbankCode" Value="" /> <asp:HiddenField runat="server" ID="hdnifscCode" Value="" /> </div>
I am Using This Functions $(document).ready(function () { $("#ddlBeneficiaryBank").select2({ placeholder: "Select an option", allowClear: true }); });
function pageLoad(sender, args) { / $("[id*=ddlBeneficiaryBank]"). select2(); } var prm = Sys.WebForms.PageRequestManager.getInstance(); if (prm != null) { prm.add_endRequest(function (sender, e) { if (sender._postBackSettings.panelsToUpdate != null) { $("[id*=ddlBeneficiaryBank]"). select2(); } }); };
But Not Getting Search Box in the DropDown Please Help Me !...............