how to make the listbox be loaded always open? Like user click?
Sumo select - how to make the listbox be loaded always open?
1.6k Views Asked by Alex Lima At
2
There are 2 best solutions below
0

I'm having problems, after I added the option: jQuery ('. SumoSelect'). addClass ('open'); The asp: listbox is always open as expected, but when the user clicks on an item in the list, it does not select (does not select any item), other than the example you put above
My code:
<script src="/js/Alex/jquery.sumoselect.min.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery(<%=lstBoxClientes.ClientID%>).SumoSelect({ search: true, searchText: 'Pesquise...' }); jQuery('.SumoSelect').addClass('open');
});
</script>
<asp:listbox runat="server" id="lstBoxClientes" selectionmode="single" DataSourceID="dsclientes"
DataTextField="cliente" DataValueField="clienteid">
</asp:listbox>
You could simply add the class
open
to the sumo element like :Or base on your select selector like :