bootstrap-select

bootstrap-select selects a wrong option each time.

点点圈 提交于 2019-12-12 06:12:16
问题 I am using bootstrap select Bootstrap-select v1.7.2 in Angular. When I select some option from drop down it selects some other option. Plunker is setup here: http://plnkr.co/edit/HPPlxx?p=preview (code is in dashboard.html and dashboard.js) That's how I am creating it. bootstrap-dropdown is the directive that initiates the drop-down. <form role="form" name="frmVariableConfig" ng-submit="vm.saveChanges()"> <select ng-model="vm.CurrCustomer.Logic" name="ddlLogic" check-validation class=

Bootstrap-select DropDownList not showing

泄露秘密 提交于 2019-12-12 00:36:00
问题 I have a bootstrap-select combobox that I fill with data in an ajax call Html: <div class="row"> <select id="selectGemeente1" class="selectpicker" data-live-search="true"></select> </div> Ajax call: var gemeenteLijst = []; var GetGemeentes = function () { $.ajax({ type: "GET", dataType: "json", url: 'https://localhost::blabla', contentType: "application/json; charset=utf-8", success: function (data) { var test = document.getElementById("selectGemeente1"); data.forEach(function (item) { var

Knockout - applying styles to the selected item in a Bootstrap Select

馋奶兔 提交于 2019-12-11 09:48:31
问题 So this is piling libraries on top of libraries, but I'm not sure what else to do. Our application has a number of drop-down elements all of which are Bootstrap Select objects. These replace the standard set of option tags inside the select with a complex series of other elements that give you much greater control over the styling of the children and make them searchable. Most of these objects exist as reusable components with an HTML view and a Typescript ViewModel, bound together with

angular forms validation issues when using plugins

我与影子孤独终老i 提交于 2019-12-11 09:04:32
问题 I have an Single Page Application build using Angular and i am having some issues with the form. Form is using a check box a drop down and two text boxes. first text box (Name) has no validation. check-Box is using a third party plugin called "iCheck". Drop down is using a plugin called "bootstrap-select". Validation is using a library called "Jquery Validation Engine". The plunker is setup here The expected behavior is. In simple words the text box and drop are required if check-box is

Bootstrap-Select plugin not working with time consuming page load

怎甘沉沦 提交于 2019-12-11 07:59:18
问题 I am using bootstrap select plugin of silviomoreto. I am using it in an ASP.Net MVC application. I am using this with show tick option. The code is like this. setTimeout(function () { $('#ddlSortBy').selectpicker({ 'selectedText': 'Select' } }); }, 200); The problem is that this plug is not working without settimeout method in my application. I have to attach this plugin within settimeout method and within document.ready method. However some time when a page loading takes more that 200 ms

bootstrap-select with JQuery slimscroll display error

人盡茶涼 提交于 2019-12-11 00:07:46
问题 I'm currently using boostrap-select 1.12.2 plugin to display some filter widgets. Thoses widgets are displayed on the left side of the page, and are dynamically added. The widget list can be quite long (20+ filters) so I display them in a scrollable div, using JQuery slimScroll 1.3.8. It works fine when options in selectpicker are small, however when options are long, they aren't displayed correctly : whereas I would like to have this (obtained when slimScroll is disabled) : I guess this is

Bootstrap select error: Cannot set property '_menu' of undefined

我的未来我决定 提交于 2019-12-10 21:42:59
问题 I've implemented select box using bootstrap-select in angular 5. I've used latest version of Bootstrap select to make it work angular 5. But it throws below error. bootstrap-select.js:1904 Uncaught TypeError: Cannot set property '_menu' of undefined <form> <select class="selectpicker" data-live-search="true"> <option>Mustard</option> <option>Ketchup</option> <option>Relish</option> </select> </form> View Plunkr 回答1: Bootstrap-select v1.13.0-dev is compatible with Boostrap 4. You can find

Issue on Loading Bootstrap Select Options Through Ajax Post

[亡魂溺海] 提交于 2019-12-10 17:00:05
问题 Using Bootstrap 3 and Bootstrap-Select plugin I am trying to load the options of the select drop down by ajax from database.the code works perfectly when I remove the select picker lass from the select element but with that class (which is required to use bootstrap select) it is not loading any of options. <select id="arearesults" class="selectpicker" data-live-search="true"> <option value="select">Select From The List</option> </select> $('.btn-group .btn').click(function(){ $.post( 'con

Bootstrap-select didnt show on page load

大城市里の小女人 提交于 2019-12-10 13:16:25
问题 I'm trying to make a simple Bootstrap-select show up. But it doesn't show up. When looking on the debugger, I saw that the display is none on the following line: select.bs-select-hidden, select.selectpicker { display: none !important; } The point is I never added this class to my select. and would love to not see it in the debugger style window. It's the cause I think. Here is the simple code: <div class="input-group input-group-sm"> <select class="selectpicker" id="event-name-ecom"> <option

How to select dynamically in Bootstrap-select with multiple values

大城市里の小女人 提交于 2019-12-10 13:13:47
问题 How can I select dynamically in Bootstrap-select with multiple values, if my values are 1,3,4, using jQuery? Here is my select: <select id="myselect" name="myselect[]" multiple> <option value=""></option> <option value="1">red</option> <option value="2">orange</option> <option value="3">green</option> <option value="4">blue</option> </select> 回答1: Use Bootstrap-Select's val method: $('#myselect').selectpicker('val', [1,3,4]); http://jsfiddle.net/a4bxnwws/ See Bootstrap-Select's documentation.