Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all 81690 articles
Browse latest View live

wholesale Vaseline dressing

$
0
0

Vaseline Dressing
1.Product Description.
1).Product Features.
• A kind of Dressing, made of Vaseline and dressing
• Main used for wound protection.
• Use method: Available to local skin clean and dry affected area and add coating treatment on the gauze after sterilization or on the skin, will apply gauze on the wound, after sterilization with medical adhesive
2).Specification.
Vaseline Dressing
Brand NameOEM Depends on customers need
Size10x10cm
10x40cm
10x700cm
Packing10pcs/box,600pcs/carton
10pcs/box,300pcs/carton
Lead time40days
MaterialDressing and Vaseline
CertificateCE, ISO,TUV
PackageHigh quality package.
2.Product Image.
3.FAQ.
1).Offer samples?
---Yes.
2).Is PRI-SAFETY a manufacturer or trading company?
---Manufacturer.
3).Can you print our logo on products?
---Yes, no problem. We also support OEM.
4).How long does it take to delivery?
---In 30-45 days after receipt of 30% deposit.
5).What's your min order quantity?
---Our MOQ is 10000 pieces, depends on specific situation.
4.Contact ways.
1).E-mail: jasonzhu@avocare.com.cn
2).Skype: nanuto8
3).Tel: 0086-15706103166
Many thanks for browsing! Welcome your inquiry! Any of your questions will get our prompt attention & reply.wholesale Vaseline dressing
website:http://www.acmwoundcare.com/wound-care/paraffin-gauze/


Acrylic Bookshelf

$
0
0

SilkScreen printing machine,
Production Market
North America37.54%
Domestic Market34.68%
Western Europe6.57%
South America6.23%
Northern Europe5.39%
Southeast Asia2.69%
Eastern Asia2.69%
Oceania2.02%
South Asia1.18%
Mid East1.01%Acrylic Bookshelf
website:http://www.acrylicer.com/

CSV Export only certain columns

$
0
0

i have a table with 5 columns and want to keep all 5 columns visible on the page but when the user clicks the CSV export button, i want to determine which columns will be on the excel sheet, namely I don't want the last column to show on the export. Is this possible?

Add a custom footer on export

$
0
0

Does anyone have an example of how to add a custom footer when exporting to csv?

For example, after the table I want to add a blank row, then our company name.

highlight in "table_1" all the rows which are present in "table_2"

$
0
0

Guys, who knows. I do not understand. Tell me please.
On one page 2 tables "table_1" and "table_2".
How I can highlight in "table_1" all the rows which are present in "table_2"?

Like on a picture.:

Memory leak while using datatable in setTimeout() with 5 sec time interval

$
0
0

Hi,

I was using data table in setTimeout() with 5 sec as interval, and its observed that memory is increasing for each cycle.

Please help me on how to clear data table for each interval so that it won't increase memory.

Regards,
Santosh

Change Casing before updating db

$
0
0

Hello Everyone, please how do i perform case changing on data submitted before calling ->process( $_POST ). That is to say i want to change all to ucwords() before i insert. Currently this is what am doing :

->fields( ... )
->validator( function ( $editor, $action, $data ) {
if ( $action === Editor::ACTION_CREATE || $action === Editor::ACTION_EDIT ) {
foreach ( $data['data'] as $pkey => $values ) {
if ( $values === 'currency_name' ) {
$values['currency_name'] = ucwords(strtolower($values['currency_name']));
}
}
}
} )

```->process( $_POST )```
```->json();```

That is, i want to call ucwords() on on the data in currency_name . but its not working,

Please help me,

column.search for numerical range

$
0
0

Hello,

I am new to datatables and am struggling on finding how to filter a column by a numerical range.

https://datatables.net/reference/api/column().search()

I have a column with pure numbers.

1
2
5
7
10
200
241
..etc

I have a filter textbox that a user can put a minimum amount, say 8. If 8 was answered i would want only rows with >= 8 to appear.

Filtering text works great with column.search(val ? '^' + val + '$' : '', true, false).draw(); However, i can't get the numerical >= to work.

Any help would be appreciated.
Thank you!


How to check the options of a select field

souravpoorna

$
0
0

When I am using "oSearch": { "bSmart": false} to stop smart search
then bStateSave:true not working .
I dont want to use .search() function then How to fix that problem?

Column misalignment ONLY at first time (or reload)

$
0
0

After using scrollY with "50vh", the column headers have not the correct width (after loading or reloading). When i reorder (mouse click on the header) the table or resize the window, the width of the column headers have been corrected (Firefox and IE 11). How can i fix that? Using DataTables 1.10.16. (Website is protected, user name and password with PM?)

How can i bind dropdown values depending upon the selection of first dropdown?

$
0
0

Hi,
How can i change the value of dropdown values depending on the value i select from the first dropdown?

PHP Datatable\Editor doesn't give a value

$
0
0

When using Editor, the user edit a row. I want to know some field values submitted by the user, in server side.

In PHP, I use this method:

->on('preEdit', function ( $editor, $values ) {
        $val = $editor->field('myField')->getValue();
    })

$val returns empty.

And $editor->field('myField') returns this:

DataTables\Editor\Field Object
(
    [_dbField:DataTables\Editor\Field:private] => myField
    [_get:DataTables\Editor\Field:private] => 1
    [_getFormatter:DataTables\Editor\Field:private] =>
    [_getFormatterOpts:DataTables\Editor\Field:private] =>
    [_getValue:DataTables\Editor\Field:private] =>
    [_opts:DataTables\Editor\Field:private] =>
    [_optsFn:DataTables\Editor\Field:private] =>
    [_name:DataTables\Editor\Field:private] => myField
    [_set:DataTables\Editor\Field:private] => both
    [_setFormatter:DataTables\Editor\Field:private] =>
    [_setFormatterOpts:DataTables\Editor\Field:private] =>
    [_setValue:DataTables\Editor\Field:private] =>
    [_validator:DataTables\Editor\Field:private] => Array
        (
        )

    [_upload:DataTables\Editor\Field:private] =>
    [_xss:DataTables\Editor\Field:private] =>
    [_xssFormat:DataTables\Editor\Field:private] => 1
)

So, I don't know how to know the value of a field submitted by the user in the editor.

Two Editor with two datatables in the same page

$
0
0

Is it possible to put two datatable editor for two tables on the same page?

I think is just needed to use differents name for each editor var on the page correct?

Setting default value select when dynamically loading data

$
0
0

Hello,

For an inline form edit, I dynamically load data from a json query. I'll do the update with the update field.
Everything is working fine, but I want to set a selected field (default field).


$('#production_delivery_registrations').on('click', 'tbody td:not(:first-child)', function (e) { var tr = $(this).closest('tr'); var row = production_delivery_registrations.row( tr ); var index = production_delivery_registrations.column.index( 'fromVisible', $(this).index() ); var group_user = production_delivery_registrations.cell(this, production_delivery_registrations.column('group_user:name')).data(); var mx_order = production_delivery_registrations.cell(this, production_delivery_registrations.column('mx_order_description:name')).data(); switch(index) { case production_delivery_registrations.column('login:name').index(): case production_delivery_registrations.column('production_count:name').index(): case production_delivery_registrations.column('comment:name').index(): case production_delivery_registrations.column('production_date:name').index(): case production_delivery_registrations.column('production_run:name').index(): if ($('.production_delivery_registrations.show').data('rights_create') == 1) { production_delivery_registrations_modify.inline( this, { buttons: { label: '<em class="fa fa-edit"></em>', fn: function () { this.submit(); } } } ); } case production_delivery_registrations.column('production_run:name').index(): $.ajax({ url: Routes.order_references_order_event_list_path(mx_order, { format: 'json'}), type: 'GET', dataType: 'json', success: function(result) { production_delivery_registrations_modify.field('production_run').update(result); } }); }; });

The webform is

    production_delivery_registrations_modify = new $.fn.DataTable.Editor ({
        ajax: {
            edit: {
                url: $('#production_delivery_registrations').data('source'),
                type: 'PUT'
            }
        },
        table: '#production_delivery_registrations',
        idSrc: 'id',
        fields: [
            {
                name: 'production_date',
                type: 'datetime',
                def:   function () { return new Date(); },
                label: $('#production_date').html(),
            },{
                name: 'user_id',
                label: $('#login').html(),
                type: 'select',
            },
            {
                name: 'mx_order_description',
                label: $('#mx_order_description').html(),
                type: 'readonly',
            },
            {
                name: 'brand_description',
                label: $('#brand_description').html(),
                type: 'readonly',
            },
            {
                name: 'production_count',
                label: $('#production_count').html(),
            },
            {
                name: 'production_run',
                data: 'production_run',
                label: I18n.production_delivery_registrations.table.production_run,
                type: 'select'
            },
            {
                name: 'comment',
                label: $('#comment').html(),
            }
        ]
    });

When adding "def" to the table, the default value is not set, because the data is loaded afterwards
When adding production_delivery_registrations_modify.field('production_run').def(..); in the update, it also doesn't work.

Nice would be, to have a default parameter in the update string.

Regards,

Sander


Is there an event that fires when invalidate() is called?

$
0
0

There doesn't appear to be an event that fires when invalidate() is called.

The problem is this function alters the DOM, but there doesn't appear to be any event that fires after this method takes place.

I'm having an issue where I have an extension I wrote that adds some elements to the table to help with layout. These DOM helpers get put in place during initialization or when a new row is added.

When I use the ColReorder plugin, it calls the invalidate() method on all the rows and the content is rerendered, so the elements added are removed.

I could attach a column-reorder event for this specific use case, but I was hoping for a fix that would cover all the use cases.

Am I missing an event that does fire?

If not, any chance on getting an invalidate event() that would fire after the function has been called?

Jquery datatable is nnot showing paging

$
0
0

i m unable to get pagination using this plugin here is my code

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>

<!--Import jQuery before export.js-->



<!--Data Table-->
<link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" rel="stylesheet" />




<!--Export table buttons-->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.24/build/pdfmake.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.24/build/vfs_fonts.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/buttons/1.2.4/js/buttons.html5.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/buttons/1.2.1/js/buttons.print.min.js"></script>

<!--Export table button CSS-->

<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<link rel=" stylesheet" href="https://cdn.datatables.net/buttons/1.2.4/css/buttons.dataTables.min.css">


@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")

</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
@Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
</ul>
@Html.Partial("_LoginPartial")
</div>
</div>
</div>
<div class="container body-content">
@RenderBody()
<hr />
<footer>
<p>© @DateTime.Now.Year - My ASP.NET Application</p>
</footer>
</div>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
</body>
</html>

How to save multiple values with plugin select2 as one field in database

$
0
0

I've got the following js code to select multiple options.

{
                "label": "Bodemvocht:",
                "name": "bodemvocht",
                "type": "select2",
                "options": [
                     { "label": "", "value": "" },
                     { "label": "Droog", "value": "Droog" },
                     { "label": "Vochtig", "value": "Vochtig" },
                     { "label": "Nat", "value": "Nat" },
                     { "label": "Geen voorkeur", "value": "Geen voorkeur" }
                ],
                "opts": {
               "placeholder": "Selecteer vochtigheid",
               "multiple": "multiple",
               "separator": ";",
               "allowClear": true
                }

But when saving this I get an error (Array to string conversion) and only the text 'Array' is saved in the database. How to solve this properly?

Thanks for your help!

column.search for numerical range

$
0
0

Hello,

I am new to datatables and am struggling on finding how to filter a column by a numerical range.

https://datatables.net/reference/api/column().search()

I have a column with pure numbers.

1
2
5
7
10
200
241
..etc

I have a filter textbox that a user can put a minimum amount, say 8. If 8 was answered i would want only rows with >= 8 to appear.

Filtering text works great with column.search(val ? '^' + val + '$' : '', true, false).draw(); However, i can't get the numerical >= to work.

Any help would be appreciated.
Thank you!

How can I sort using a column with euro currency values?

$
0
0

I have a table with currency. I want to be able to sort it. The data has the euro sign symbol. I tried this:

<html>
<head>
    <script type="text/javascript"  src="js/jquery-3.1.1.min.js"></script>
    <script type="text/javascript"  src="js/jquery.dataTables.min.js"></script>
    <script type="text/javascript"  src="js/currency.js"></script>
</head>
<body>
<script>
$(document).ready(function() {
 var money_table=$('#moneys').DataTable();
 });
</script>

<table id="moneys">
<thead>
        <th>id</th>
        <th>chines</th>
</thead>
<tbody>
    <tr><td>0</td> <td>1.35 &euro;</td></tr>
    <tr><td>1</td> <td>15.65 &euro;</td></tr>
    <tr>    <td>2</td> <td>8.15 &euro;</td></tr>
    <tr>    <td>3</td> <td>1.00 &euro;</td></tr>
    <tr>    <td>4</td> <td>0.3 &euro;</td></tr>
</tbody>
</table>

</body>
</html>

But does not work. Any hint?

Viewing all 81690 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>