Giter Club home page Giter Club logo

bootstrap-table-filter's People

Contributors

like2k1 avatar lukaskral avatar mochetts avatar pyotruk avatar wenzhixin avatar yasinkuyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrap-table-filter's Issues

Filter not working with php

I am using this http://wenzhixin.net.cn/p/bootstrap-table/docs/examples.html plugin in my bootstrap table it is not working

     <div id="filter-bar"> </div>

< script type="javascript">

$(document).ready(function(){

    $('#filter-bar').bootstrapTableFilter({

        filters:[

            {

                field: 'class',    // field identifier

                label: 'Class',    // filter label

                type: 'range'   // filter type

            },

        ],

        onSubmit: function() {

            var data = $('#filter-bar').bootstrapTableFilter('getData');

            console.log(data);

        }

    });

});

</ / /script>

        <table id="tablesort"

          data-toggle="table" 

               data-sort-name="course" 

               data-sort-order="desc" 

               data-search="true"

               data-show-refresh="true"

               data-show-toggle="true"

               data-show-columns="true"

               data-pagination="true"

               data-toolbar="#filter-bar"

               data-show-filter="true"

               class="table table-bordered table-hover table-striped">



            <thead>

                <tr>

                    <th data-field="name" data-align="center" data-sortable="true">Name</th>

                    <th data-field="class" data-align="center" data-sortable="true">Class</th>

                    <th data-field="email" data-align="center" data-sortable="true">Email</th>

                    <th data-field="phone" data-align="center" data-sortable="true">Phone</th>

                    <th data-field="course" data-align="center" data-sortable="true">Course (Level)</th>

                    <th data-field="phase" data-align="center" data-sortable="true">Phase</th>

                </tr>

            </thead>

            <tbody>

< ?php

while($Details = mysqli_fetch_array($Enrolled_Sql, MYSQLI_ASSOC)){

? >

                <tr>

                    <td>< ?php echo output_clean($Details['Name']); ? ></td>

                    <td>< ?php echo output_clean($Details['Class']); ? ></td>

                    <td>< ?php echo output_clean($Details['Address']); ? ></td>

                    <td>< ?php echo output_clean($Details['Number']); ? ></td>

                    <td>< ?php echo output_clean($Details['CName']).','.output_clean($Details['Level']); ? ></td>

                    <td>< ?php echo output_clean($Details['Phase']); ? ></td>

                </tr>                     

< ?php

}

? >

              </tbody>

        </table>

Apply a not empty filter

Hello! How I can apply filter in code? The second question is how I can apply not empty filter on table init? Thanks.

Cannot see filter option

I've got a test of this set up, but the filter option doesn't show. Since there is no documentation, I'm having a hard time figuring out why. The pagination, search etc. all show and work, but not the actual filter. Does the filter need to be set up with a jquery function? If so, that won't work for me, I'm using MYSQL to populate the tables on my site.

Multiple bootstrap table filter

Hi,

I have placed two bootstrap table in single page. First table for customer address details, second one for product detail, I have used bootstrap-table-filter

the data are loaded correctly.
the filter bar showing column names correctly.

While filtering the last loaded filter bar works correctly where the first one not, I tried to identify the issue the bs-table.js variable name "bootstrapTableFilter" keeps the last loaded filterbar details.

I used bootstrap-table.js, bootstrap-table-filter.js and bs-table.js

if possible can I get an example

How to renew plugin?

Hi, can you tell me what is the method to update the filter-bar after table update?

I have a table with 3 fields, F1, F2, F3.

When I update a row, in the filter-bar is shown the old field value.

I tryed to call resetView, but without results...

bootstrapTableFilter doesn't reload table

Hello,

I have this problem with your plugin: after applying filters with the command "bootstrapTableFilter (' getData ')", the linked table isn't reloaded. Filters are not executed.

I'm using last version of plugin.

The code is this:

$('#filter-bar').bootstrapTableFilter({
filters:[
{
field: 'descrizioneComune', // field identifier
label: 'descrizione Comune', // filter label
type: 'search' // filter type
},
{
field: 'supTot', // field identifier
label: 'Sup. (Kmq)', // filter label
type: 'range' // filter type
},
],
connectTo: '#comuniGALJson',
onSubmit: function() {
var data = $('#filter-bar').bootstrapTableFilter('getData');
console.log(data);
}
});

Thanks in advance,
Max

How can I hide columns from fiter list ?

Hello.
How can I make undefined columns hidden from the filter list ? i.e the empty one in the image below.
Also is there a way to remove columns from the list that are hidden ?
Also can I remove the Edit / Delete columns ?

issues

Thanks

关于range check的问题

bootstrap-table-filter.sj 125行,也就是range的check函数,大小比较时会把等于也判断进去,个人觉得不怎么合理

Found filters to be active even when checkbox is not selected.

I found that when i select a filter and fill a value for the first time and then press btn-refresh without selecting the checkbox if found the filter to be active. The checkbox has to be selected for the filter to be active, but its not when we enter the data in the above workflow.

  • selected filter
  • enter text
  • do not click checkbox
  • click refresh button

and its still filtering

Table resizes after refresh

Hi guys

If I use the bootstrap-table-filter extension, the table changes his height after a refresh.
How can I prevent that?

Many Thanks,
Adam-Harrys

Request - date filter

I think it would be extremely valuable to have a filter type of 'date' available!

Thank you for your plugin

select & search not working. range is working ?

Hello.

I am having trouble with filters.

select & search are not working but range is working ?

If i do an equals to on a number it is working fine.
If I select a check box or type in the search it comes back blank even tho it is there.

I have a feeling that it might be conflicting with ex-editable because ex-editable adds data-type to the td.

for example:

          td
           a  data-type="text > Product 1   /a
            /td

I noticed that bootstrap table filter uses type: 'search' etc... Would that be the reason ?

my bootstrap table loks a little like this:

my json looks a little like this:

[
{
"id": "1",
"prodcode": "0001",
"prodname": "Product 1",
"proddescription": "Description 1",
"prodcategory": "Category1",
"prodsupplier": "Default Supplier 1",
"prodcost": "10.00",
"prodsell": "20.50",
"prodtax": "20",
"prodmodified": "2015-12-30",
"prodstock": "-32",
"prodbarcode": "688vv8v8sv5s675s",
"prodstatus": "outofstock"
}
]

I am not using my js file to create the tables.

Any ideas ?

p.s how can i add code blocks here ? ;)

Case insensitive value search

The filtering itself works fine, but if i have e.g. a value "ACME" in the list of possible filter values and search for it by typing "acme" in the search field, it won't show because the search seems to be case sensitive. Entering "ACM" works as expected.

Does this work?

I cannot get this to work? Documentation examples vary greatly. Repo does locally and on jsfiddle without luck. Can you help me out here?

Filter Control with x-editable

Hi there,

i'm trying use Filter Control with x-editable, but the problem is this:

When you trying to search, you get all info between "td" tag, and i'm just trying to get text from "a" tag(because of x-editable), and then return wrong results.

can you help?

Regrats,
Marco Santos

Updating Filter based on an Event

Hi guys,

I'm trying to configure the Bootstrap Table Filter to update based on a user clicking on an object rather than using the filter bar itself. If you navigate to http://www.cbstriptracker.com, you'll see that I have a map of the world towards the top of my screen and the Bootstrap Table & Filter at the bottom. I tried to write some JavaScript code such that clicking a country would filter the table accordingly by using the following code:

$('#filter-bar').bootstrapTableFilter('setupFilter', 'country', {_values: ['US']});

I'm getting an error that says bootstrapTableFilter can't be found. Has anyone tried anything similar, and if so have you found a solution for updating the filter based on an event?

How to initialize the filter bar with an active filter.

Hello,

I want to initialize the filter bar with an active filter which is also initialised with a value.

For example, when the table is created, I would like the column "state" filtered with the condition equal to "added".

Edit

I have a second question : How to edit a filter.

I want to change the type a filter, for example, from "search" to "check"

Filters don't update table after clicking apply

Hello! Last version of filters seems broken - it does nothing after clicking on apply button (no errors on console)

http://plnkr.co/edit/XA0kUc?p=preview - your plnkr's you attached to #3 is not working.

http://plnkr.co/edit/JkRMZt?p=preview - this one you attached to #5 works, but if I add pagination (data-pagination="true") - it's not working again

Also examples attached to github repo behave like plnkr 1.

bootstrap-filters look very usefull but I can't use it, could you please investigate this issue.

thx

分页问题

data-url定义了,自定义toolbar,里边写的自定义查询条件,查询的时候用bootstrapTable('refresh',{query{}}),第一页有效果,点击第二页查询参数就没了

How to set a default filter

Hi guys

How can I set a default filter?

Example:
If I want to hide all rows with the id 1, 12 and 33 I now have to manually check this ids.
But I want to set them as checked in the js code.

Is it possible to do that?

Many thanks,
Adam-Harrys

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.