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

DataTables warning: table id=example1 - Ajax error

$
0
0

Laravel 8:
Error: DataTables warning: table id=example1 - Ajax error:
Description of problem: Hi,
I use laravel 8.
I have a mysql table : orders
I have a route in my web.php
Route::resource(name:'orders',controller:\App\Http\Controllers\OrdersController::class);
here is my controller :
use Illuminate\Http\Request;
use App\Models\Orders;

class OrdersController extends Controller
{

    public function index()
    {

        $orders = Orders::all();
        return view('orders.index', compact('orders'));

    }

Here is my Orders class :
namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Orders extends Model
{
    use HasFactory;
    protected $fillable = [
        'site', 'number', 'amount', 'mail', 
        'first_name', 'last_name', 'address',
        'user_updated_id',

    ];
}

In my app.blade.php I put the Javascript and CSS like this :
<title>{{ config('app.name', 'Laravel') }}</title>

        <!-- HTML tables datatables.net  -->
        <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.js"></script>
        <script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.25/datatables.min.js"></script>
        <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.25/datatables.min.css"/>
        <style>
            td.details-control {
                background: url('/images/details_open.png') no-repeat center center;
                cursor: pointer;
            }
            tr.shown td.details-control {
                background: url('/images/details_close.png') no-repeat center center;
            }
        </style> 

In my index.blade.php I put the html code and javascript like this :

Site Number Amount Mail
Site Number Amount Mail
</x-app-layout>
<script>
console.log('00');


/* Formatting function for row details - modify as you need */
function format ( d ) {
    console.log('11');
    // `d` is the original data object for the row
    return '<table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;">'+
        '<tr>'+
            '<td>First Name:</td>'+
            '<td>'+d.first_name+'</td>'+
        '</tr>'+
        '<tr>'+
            '<td>Last Name:</td>'+
            '<td>'+d.last_name+'</td>'+
        '</tr>'+
        '<tr>'+
            '<td>Address:</td>'+
            '<td>'+d.address+'</td>'+
        '</tr>'+
    '</table>';
}
$(document).ready(function() {

    var table = $('#example1').DataTable( {
        "ajax": "../ajax/data/ordersObjects.txt",
        "columns": [
            {
                "className":      'details-control',
                "orderable":      false,
                "data":           null,
                "defaultContent": ''
            },
            { "data": "site" },
            { "data": "number" },
            { "data": "amount" },
            { "data": "mail" }
        ],
        "order": [[1, 'asc']]
    } );            



    // Add event listener for opening and closing details
    $('#example1 tbody').on('click', 'td.details-control', function () {
        var tr = $(this).closest('tr');
        var row = table.row( tr );

        if ( row.child.isShown() ) {
            // This row is already open - close it
            row.child.hide();
            tr.removeClass('shown');
        }
        else {
            // Open this row
            row.child( format(row.data()) ).show();
            tr.addClass('shown');
        }
    } );

    $.fn.dataTable.ext.errMode = 'throw';
} );

</script>

And I have a empty file : ordersObjects.txt into the [myWebSite/ajax/data/ordersObjects.txt]
And I have a empty file : ordersObjects.txt into the [myWebSite/ajax/data/ordersObjects.txt]

On the Chrome's developer console I have a this message :

GET http://myWebSite:82/ajax/data/ordersObjects.txt?_=1627054814614 404 (Not Found)
Uncaught Error: DataTables warning: table id=example1 - Ajax error. For more information about this error, please see http://datatables.net/tn/7

Where I make the mistake ? :neutral:
There is surely something that I did not understand! :neutral:
I missing something :neutral:
Do you have an idea? :neutral:
You can help me ? :neutral:

Thanks


Table header width not according to the text

$
0
0

Is possible can make the table header auto fit according to the title with one line ?

This is my databale config
oTable = $('.dataTable').DataTable({
"serverSide": true,
"processing": true,
"searching": false,
"order": [[0, "desc" ]],
"scrollX": true,
"ajax":{
url : 'member/getDataTable?'+$('form').serialize(),
type: 'POST'
},
});

I tried the sample below but is not working too.
https://datatables.net/extensions/fixedcolumns/examples/initialisation/size_fluid.html

Thank You.

function fixedColumns().update() clears column-search in the fixed column

$
0
0

Hi,

I found that the search field in a fixedColumn is cleared by the fixedColumn()update() function.
See the example in http://live.datatables.net/qozuwoce/1/edit

repro:
-) open the example
-) enter some search quote in the search-field for Name (the fixed column)
-) enter [tab] -> search is done and rebuild table.
-) Now click on one of the Test-buttons in the Salary-column
-) The FixedColumn().update() is called and the entered seach-field is cleared, while the selaction is still active.

If you switch fixedColumns off then it's all OK.

regards, Marcel

Problem with internalization

$
0
0

Hi:

I´m using DataTable 1.10.25 and having issues with internationalization.

I don´t know what is wrong, but it doesn´t work.

async componentDidMount() {
    await this.doGetRecords()      
    this.$el = $(this.el);        
    this.$el.DataTable({
        "language": {"url": "https://cdn.datatables.net/plug-ins/1.10.25/i18n/Portuguese-Brasil.json"},
        "rowReorder": true,
        "responsive": true,
        "order": [[ 1, "asc" ]],
        "columnDefs": [                
            { 
                orderable: false, 
                className: 'reorder', 
                targets: 0 
            },
            {
                className: "text-right", 
                targets: [1] 
            }
        ]           
    });
}

Displaying 'No data available in table' and when clicking filters, table clears data.

$
0
0

I have a table created from a getJSON function that takes my data from a temporary file until I get my API call running.
The table gets populated but the first row says No data available in table, when there is data in. I figure it was a problem with asynchronous functions running. But I am having trouble finding a fix with the way I am looping through my data to correctly display it into the table.

Here is all of my code.

$(document).ready(function() {

$.getJSON("projects.json", function(results){
    var table = $('#results_table').DataTable();
    $('#results_table_wrapper').addClass('container mt-5');
        for(let project in results){
            let project_name = results[project].projectname;
            let project_owner = results[project].owner;
            $("#table_body").append("<tr><td>"+project_name+"</td><td></td><td></td><td></td><td></td><td></td></tr>");
            $("#table_body").append("<tr><td>Released by "+project_owner+"</td><td></td><td></td><td></td><td></td><td></td></tr>");
            let resources = results[project].resources;
            for(let resource in resources){
                let resource_name = resources[resource].resourcename;
                $("#table_body").append("<tr><td></td><td>"+resource_name+"</td><td></td><td></td><td></td><td></td></tr>");
                let versions = results[project].resources[resource].versions;
                for(let version in versions){
                    let version_decimal = versions[version].version;
                    let date = versions[version].date;
                    let user = versions[version].user;
                    let annotation = versions[version].annotation;
                    annotation = !annotation ? ' '  :
                    date = !date ? ' ' :
                    $("#table_body").append("<tr><td></td><td></td><td>"+version_decimal+"</td><td>"+date+"</td><td>"+user+"</td><td>"+annotation+"</td></tr>");
                }
            }
        }
});

});

Filtering table based on a click

$
0
0

I am listing different categories(actually the # results for each category) on the top of my page that is data in one of the columns and then I initialize my table. If the user clicks on one of those numbers what is the best way to "filter" the table.

I am doing this with live data that I can't post so I am not exactly sure how to post it in test tables.

Possible to access new table data without refreshing the entire page/code?

$
0
0

https://codepen.io/pen/OJmjZdE

Right now when you first enter the page, you enter a keyword (enter yes) and it gives you data. great

But if you enter a different word after entering the first one, it wont load anything without having to refresh the whole webpage.

Is there a way to make it seamless?

Usage of the "role" attribtes

$
0
0

Hi all,
It was brought to our attention from WAI experts, that the usage of "role='grid'" for the table and "role='row'" for table rows is superflouos, because the markup is correct anyway (table and tr). So they recommend to remove it.

To the contrary, the "role=grid" attributes is supposed to impact the display of the tables on IPhones....
Do you have any opinion on this?
Thanks, Philip


Why is the date picker not displaying when I create or edit a record?

$
0
0

I'm using Editor 1.9.2 with django restframework (python).

For field.type: 'datetime' I'm unable to determine why the date picker is not displaying. If I change the type to 'date', an older version on the date picker displays which would be ok however in edit mode the existing date does not load, and for create mode the default value (timezone.now) does not load. I understand from the docs that type 'datetime' is recommended or preferred instead of date type.

My javascript:

  <script type="text/javascript">
    var editor;
    $(document).ready(function() {

    $.fn.dataTable.moment( 'DD/MM/YYYY' );

        editor = new $.fn.dataTable.Editor( {
            table: "#project-table",
            ajax: {
                create: {
                    type: 'POST',
                    url:  "{% url 'project-list' format='datatables' %}",
                    headers: {'X-CSRFToken': '{{ csrf_token }}'}
                },
                edit: {
                    type: 'PUT',
                    url:  "{% url 'project-detail' pk=None format='datatables' %}",
                    headers: {'X-CSRFToken': '{{ csrf_token }}'}
                },
                remove: {
                    type: 'DELETE',
                    url:  "{% url 'project-detail' pk=None format='datatables' %}",
                    headers: {'X-CSRFToken': '{{ csrf_token }}'}
                }
            },

            idSrc:  'project.slug',

            fields: [
                { label: "Title:", name: "project.title" },
                { label: "Slug:", name: "project.slug" },
                { label: "Phase:", name: "project.phase", type: "select" },

                {
                    label: 'Start Date:',
                    name:  'project.date_start',
                    type:  'datetime',
                    def:   function () { return new Date(); },
                    format: 'DD/MM/YYYY'
                },

                { label: "Client:", name: "project.client", type: "select" }
            ],

            i18n: {
                create: {
                    button: "Add",
                    title:  "Add new project",
                    submit: "Add"
                },
                edit: {
                    button: "Edit",
                    title:  "Edit project details",
                    submit: "Update"
                },
                remove: {
                    button: "Delete",
                    title:  "Delete project",
                    submit: "Delete",
                    confirm: {
                        1: "Are you sure you want to delete the selected project?"
                    }
                }
            }

        } );

        $.fn.dataTable.Buttons.defaults.dom.button.className = 'btn btn-sm btn-primary';
        var table = $('#project-table').DataTable( {

            pageLength: 10,
            order: [[0, "asc"]],
            processing: true,
            serverSide: true,
            dom: "lBfrtip",
            ajax: "{% url 'project-list' format='datatables' %}",
            select: 'single',

            columns: [
                { data: "project.title", orderable: true },
                { data: "project.slug", orderable: true },
                { data: "phase.name", orderable: true },
                { data: "project.date_start", orderable: true },
                { data: "client.name", orderable: true }
            ],

            buttons: [
                { extend: "create", editor: editor},
                { extend: "edit",   editor: editor},
                { extend: "remove", editor: editor}
            ]

        });

        table.buttons().container()
            .appendTo($('.col-md-6:eq(0)', table.table().container()));

        editor.field('project.phase').input().addClass('form-control');
        editor.field('project.client').input().addClass('form-control');

    });
  </script>

django restframework serializer:

class ProjectSerializer(serializers.ModelSerializer):
    # Can be removed as DATE_FORMAT has been set in settings.base.py
    date_start = serializers.DateField(format="%d/%m/%Y")

    class Meta:
        model = Project
        fields = ['url', 'pk', 'title', 'slug', 'phase', 'date_start', 'client']

    def __init__(self, *args, **kwargs):
        super(ProjectSerializer, self).__init__(*args, **kwargs)
        self.fields["title"].error_messages["blank"] = u"Title cannot be blank"
        self.fields["slug"].error_messages["blank"] = u"Slug cannot be blank"
        self.fields["phase"].error_messages["required"] = u"Phase is required"
        self.fields["date_start"].error_messages["blank"] = "Start date cannot be blank"
        self.fields["client"].error_messages["required"] = u"Client is required"

datatables libraries:

    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.10.20/b-1.6.1/sl-1.3.1/datatables.min.css"/>
    <link rel="stylesheet" type="text/css" href="{% static 'project/Editor-1.9.2/css/editor.dataTables.css' %}">
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.7.1/css/buttons.dataTables.min.css" />
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/select/1.3.3/css/select.dataTables.min.css" />

    <script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.10.20/b-1.6.1/sl-1.3.1/datatables.min.js"></script>

    <script type="text/javascript" src="{% static 'project/Editor-1.9.2/js/dataTables.editor.js' %}"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.7.1/js/dataTables.buttons.min.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/select/1.3.3/js/dataTables.select.min.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/datetime/1.1.0/js/dataTables.dateTime.min.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/plug-ins/1.10.20/sorting/datetime-moment.js"></script>

django model:

class Project(models.Model):
    title = models.CharField('title', max_length=65, db_index=True)
    description = models.CharField('description', max_length=120, blank=True, null=True)
    slug = models.SlugField(max_length=65, unique=True, help_text='A label for URL config.')
    phase = models.CharField('phase', max_length=25, choices=PROJECT_PHASE_CHOICES, default='DESIGN')
    date_start = models.DateField('date_start', default=timezone.now)
    date_complete = models.DateField('date_complete', blank=True, null=True)
    comment = models.TextField(null=True, blank=True)
    client = models.ForeignKey(Client, on_delete=models.PROTECT, related_name='projects', blank=True, null=True)

    class Meta:
        ordering = ['date_start']
        get_latest_by = 'date_start'
        verbose_name = 'Project'
        verbose_name_plural = 'Projects'

    def __str__(self):
        return '%s' % (self.title)

    def get_absolute_url(self):
        return reverse('project_detail', kwargs={'slug': self.slug})

    def get_delete_url(self):
        return reverse('project_delete', kwargs={'slug': self.slug})

    def get_update_url(self):
        return reverse('project_update', kwargs={'slug': self.slug})

Any assistance would be greatly appreciated.

Many thanks,
Michael

Bootstrap 4 cell spacing

$
0
0

I have a Vue3 app with dataTables. Everything works. Now I would like to add Bootstrap 4 css to the table. So according documentation run

npm install datatables.net-bs4

also import it in the Vue component

import 'bootstrap/dist/css/bootstrap.min.css';
import "datatables.net-bs4/css/dataTables.bootstrap4.css";
import "datatables.net-bs4/js/dataTables.bootstrap4.js"

The table obviously have Bootstrap style but there are few things I would like to correct. Mainly there are spacing between table cells. It is against bootstrap css. How did it get there? Second one is the missing space between item per page drop down and the label. You can see on the picture. And the third one is that search item is wrapped by the row which is not width: 100%. As you can see it is on the left side. Dont understand it.

What is wrong with that?

SQLSTATE[HY000]: General error: 20018 Invalid usage of the option NEXT in the FETCH statement. [2001

$
0
0

hi i am testing editor-php-1.5.4 but sql server 2008 not working. I see that the syntax of the SqlserverQuery.php file has OFFSET FETCH proper to that version.
Is it possible to modify the code so that it can work on sql server 2008?

// SQL Server 2012+ only
protected function _build_limit()
{
    $out = '';

    if ( $this->_offset ) {
        $out .= ' OFFSET '.$this->_offset.' ROWS';
    }

    if ( $this->_limit ) {
        if ( ! $this->_offset ) {
            $out .= ' OFFSET 0 ROWS';
        }
        $out .= ' FETCH NEXT '.$this->_limit. ' ROWS ONLY';
    }

    return $out;
}

Header and Data Alignment

$
0
0

Hi

I am new to DataTables. Can anyone please let me know how can I align (say left) the header and data in a Datatable? Currently, it is not (left) aligned (reference screenshot attached).

DataTables warning: table id=token-table - [object Object]

$
0
0

I am getting following error for my datatable, i am not getting this error message.
DataTables warning: table id=token-table - [object Object]

       var table1 = $('#token-table').DataTable( {
           "ajax"       : {
                "url"    : token,
                "dataSrc": function ( data ) {
                    let arr = [];
                    for (key in data) {
                        arr.push({
                            name : key,
                            freq : data[key]['frequencycount'],
                            freqPercent : data[key]['percentvalue'],
                        });
                    }
                    return arr;
                    }
                },
                "columns": [
                    { "data": "name" },
                    { "data": "freq" },
                    { "data": "freqPercent" },
                ],
                deferRender : true,
                scrollY     : 500,
                scroller    : true,
               } );

       setInterval( function () { table1.ajax.reload(null,false) }, 10000 );    

            <table id="token-table">
                <thead>
                    <tr>
                        <th class="col-md-6">Token Name</th>
                        <th class="col-md-3">Frequency count</th>
                        <th class="col-md-3">Frequency Percent</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>

This is my code for dataTable.

how to setup accent-neutralization plugin from cdn?

$
0
0

I have this datatables:

setupPlugin() {
    this.$el = $(this.el);    
    this.$el.DataTable({               
        "dom": '<"d-flex justify-content-between"fi<"pull-right"l>>t<"d-flex justify-content-between"p<"pull-right"Br>>', 
        "buttons": ["copy", "excel", "pdf", "print", "colvis"],            
        "language": languageStrings,
        "responsive": true,
        "order": [[ 1, "asc" ]],
        "columnDefs": this.getRowButtonsDefs()                        
    }); 
}

how do I set up the accent-neutralization plugin from cdn in this scenario?

Export and Print for RowGroup Extension


Query works but table shows no data - Suspect SQL issue, but can't see it.

$
0
0

As it says on the tin.

server side script is this:

<?php
//SESSION START
if(!isset($_SESSION)) { 
    session_start(); 
  }
  
if(isset($_SESSION['t'])) {
  $t = $_SESSION['t'];
} else {
  $t = null;
}


include("../lib/DataTables.php");

use
    DataTables\Editor,
    DataTables\Editor\Field,
    DataTables\Editor\Format,
    DataTables\Editor\Join,
    DataTables\Editor\Mjoin,
    DataTables\Editor\Options,
    DataTables\Editor\Upload,
    DataTables\Editor\Validate,
    DataTables\Editor\ValidateOptions;

Editor::inst( $db, 'asset A', 'A.id' )
->field(
    //Static Fields - No Validation
    Field::inst( 'T.assetType' ),
    Field::inst( 'A.MATPTag' ),
    Field::inst( 'A.Room' ),
    Field::inst( 'D.discipline' ),
    Field::inst( 'L.LocationName' ),
    Field::inst( 'SY.systemName AS subsystem' ), 
)

->leftJoin( 'assettype T', 'T.assetTypeID', '=', 'A.assetType' )
->leftJoin( 'loc L', 'L.id', '=', 'A.loc' )
->leftJoin( 'system SY', 'SY.systemID', '=', 'T.subsystem' )
->leftJoin( 'discipline D', 'D.disciplineID', '=', 'SY.discipline' )
->where( function ( $q ) use ( $t ) {
  if(isset($t)) {
    $q->where('A.lastUpdated', 'DATE_SUB(NOW(), INTERVAL '.$t.' day)', '<');
  }
} )
->debug(true)
->process( $_POST )
->json();
?>

Debug SQL is:

"debug": [
    {
      "query": "SELECT  `A`.`id` as 'A.id', `T`.`assetType` as 'T.assetType', `A`.`MATPTag` as 'A.MATPTag', `A`.`Room` as 'A.Room', `D`.`discipline` as 'D.discipline', `L`.`LocationName` as 'L.LocationName', `SY`.`systemName` as 'SY.systemName' FROM  asset A LEFT JOIN assettype T ON `T`.`assetTypeID` = `A`.`assetType`  LEFT JOIN loc L ON `L`.`id` = `A`.`loc`  LEFT JOIN system SY ON `SY`.`systemID` = `T`.`subsystem`  LEFT JOIN discipline D ON `D`.`disciplineID` = `SY`.`discipline` WHERE `A`.`lastUpdated` < :where_0 ",
      "bindings": [
        {
          "name": ":where_0",
          "value": "DATE_SUB(NOW(), INTERVAL 7 day)",
          "type": null
        }
      ]
    }
  ]

Which I believe equates to:

SELECT  `A`.`id` as 'A.id', `T`.`assetType` as 'T.assetType', `A`.`MATPTag` as 'A.MATPTag', `A`.`Room` as 'A.Room', `D`.`discipline` as 'D.discipline', `L`.`LocationName` as 'L.LocationName', `SY`.`systemName` as 'SY.systemName' FROM  asset A LEFT JOIN assettype T ON `T`.`assetTypeID` = `A`.`assetType`  LEFT JOIN loc L ON `L`.`id` = `A`.`loc`  LEFT JOIN system SY ON `SY`.`systemID` = `T`.`subsystem`  LEFT JOIN discipline D ON `D`.`disciplineID` = `SY`.`discipline` WHERE `A`.`lastUpdated` < DATE_SUB(NOW(), INTERVAL 7 day)

That query returns rows in phpmyadmin, but I get no rows in datatables.

Ran the debug script and shows all upto date bar a nightly update available for datatables.

Probable something stupid, but I can't see it. I know it is around the WHERE clause, but I can't see it.

Exporting Multiple tables to a Single Excel workbook

$
0
0

Dear Team,

I am actually awe struct by how the data grids are now created and styled using Data tables and Bootstrap. A major thank you for developing this.

Could you guide me to write the js code for exporting multiple tables on a webpage into a single excel workbook with multiple sheets based on the number of tables loaded on the webpage?

Thanks and Regards,
Jeby John
mathew.jeby@gmail.com

Implementing Datatable inline editor in ASP.NET MVC

$
0
0

Hi,

Has anyone implemented simple inline editor in ASP.NET MVC? I ran into errors when I tried to make an ajax call to the controller and bind it's response (JSON objects) to the datatable. I am now testing with the static data and I want to know more about edit, create and delete operations, how are the requests sent? I am not connecting to the database through the Model classes. I write queries to INSERT/UPDATE the data. Please help me out if anyone has implemented anything similar to this. I have been working on this from the past 2 days and am not getting anywhere.

Individual column searching issue with format date Moment

$
0
0

Hello,

I'm stuck on the individual column searching for a few days.. I succeeded to change display date format with the moment library but it doesn't apply to the search box. It still expected a date like "YYYY-MM-DD".

This my code :

        var tableCheck = $('#histo').DataTable({
            scrollX: true,
            "sScrollY": "120em",
            "sScrollX": "100%",
            "bScrollCollapse": true,
            initComplete: function() {
                $('div.dataTables_scrollHeadInner thead tr#filterCheckHisto [name="filter"]').each(function() {
                    $(this).html('<input id="input' + $(this).index() + '" type="text" class="form-control" placeholder="' + $(this).text() + '" />');
                    $(this).on('keyup change', function() {
                        var val;
                        val = $('#input' + $(this).index()).val();

                        var title = $(this).text();
                        console.log('titre =' + title);

                        console.log('laa');
                        tableCheck
                            .column($(this).attr("data-num"))
                            .column($(this).index()).search(val)
                            .draw();

                    });
                });
            },

            orderCellsTop: true,
            fixedHeader: true,

            dom: 'Blfrtip',
            "searching": true,
            "processing": true,
            "serverSide": true,
            "ajax": "../server_side/scripts/server_processing_tb_check.php",

            "order": [7, "desc"],


            "columnDefs": [{
                    targets: '_all',
                    defaultContent: '-'
                },
                {
                    "targets": 5,
                    "type": "date-euro",
                    "render": function(data, type, row, meta) {
                         return moment(data).format('DD-MM-YYYY HH:mm');               
                    }
                }
            ],

            "pageLength": 25,

        });

Basically, I'd like to add a "data-order" on <td> but I don't know how can I figure out.

Thanks in advance for your help

Display dividing line after a group of rows not every row

$
0
0

In my dataTable i am populating it with telephone numbers but these numbers can be duspliacted as they may have a different extension (for example) so rather than displaying the row divider on evey line i'd like to know if its possible to display after a number with numerious rows?

Below is an example with fake numbers in.


Note: its only if the telephone number matches not any other column

Viewing all 82399 articles
Browse latest View live


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