Using selectize

0

I'm trying to use selectize in my ASP.NET C # WEBFORMS project. I'm not getting it to work, I downloaded the folder, and added it to my project, and I referenced it like this:

<script type="text/javascript" src="/javascript/jquery.js"></script>
<script type="text/javascript" src="/Selectize/js/standalone/selectize.js"></script>
<script type="text/javascript" src="/Selectize/js/standalone/selectize.min.js"></script>
<link href="/Selectize/css/selectize.bootstrap3.css" rel="stylesheet" />

I wanted the search to work in my dropdownlist:

<asp:DropDownList ID="DropModality" runat="server" AutoPostBack="False" DropDownStyle="DropDownList" CaseSensiteve="False" AutoCompleteMode="SuggestAppend" ItemInsertLocation="Append" OnSelectedIndexChanged="DropModality_SelectedIndexChanged" class="form-control"></asp:DropDownList>

I did it this way:

$('#DropModality').selectize({
  create: true,
  sortField: {
    field: 'text',
    direction: 'asc'
  },
  dropdownParent: 'body'
});

But nothing happens, as I have never worked with selectize, and I do not find any examples, I'm in trouble, who has some example, or some explanation to help me. I need to do the search inside the dropdownlist (I use the bootstrap). I accept suggestions in other ways.

    
asked by anonymous 02.03.2018 / 13:50

0 answers