Are you the publisher? Claim or contact us about this channel


Embed this content in your HTML

Search

Report adult content:

click to rate:

Account: (login)

More Channels


Showcase


Channel Catalog


Channel Description:

Recent Discussions — DataTables forums

older | 1 | .... | 2256 | 2257 | (Page 2258) | 2259 | 2260 | .... | 2326 | newer

    0 0

    Hello,

    I have a JSON file in English, I want to implement it in a project translated into Polish.

    {
    "sEmptyTable": "Dane niedostępne w tabeli",
    "sInfo": "Wyświetlono START z END dla TOTAL wierszy",
    "sInfoEmpty": "Wyświetlono 0 z 0 dla 0 wszystkich",
    "sInfoFiltered": "(Filtruj z MAX wszystkich wierszy)",
    "sInfoPostFix": "",
    "sInfoThousands": ",",
    "sLengthMenu": "Pokaż MENU wierszy",
    "sLoadingRecords": "Wczytywanie...",
    "sProcessing": "Przetwarzanie...",
    "sSearch": "Szukaj:",
    "sZeroRecords": "Nie znaleziono pasujących wpisów",
    "oPaginate": {
    "sFirst": "Pierwszy",
    "sLast": "Ostatni",
    "sNext": "Następny",
    "sPrevious": "Wstecz"
    },
    "oAria": {
    "sSortAscending": ": aktywuj, aby posortować kolumnę rosnąco",
    "sSortDescending": ": aktywuj, aby posortować kolumnę w malejąco"
    }
    }

    How to connect to the project?


    0 0

    I'm pilot testing datatables for my company, and I'm able to run the editor/node.js example with mysql running locally on my machine. All the examples run just fine at https://localhost:8081/examples.

    All things being equal, i modify the db.js file to say the following:

    let knex = require('knex');
    
    module.exports = knex({
        client: 'oracledb',
    
        connection: {
            host: 'oracledev',
            user: 'test',
            password: 'test',
            database: 'orcl'
        }
    });
    

    And then attempt to run the example with npm start and i get the following output

    DataTables Editor demo - navigate to http://localhost:8081/
    TypeError: Cannot read property 'replace' of undefined
    

    the line that comes back right after the server starts is TypeError: Cannot read property 'replace' of undefined And the source of that error i'm finding is very difficult to track down.

    Please advise!


    0 0

    I have implemented the excel export and csv export buttons in my UI and I am facing isssues such as performance and not responding issues with EXcel export button.

    For example if I have table of 237 records and of 25 columns , excel gets hanged and unable to export .

    Please check this and help me how can I fix the performance of excel export button


    0 0

    Trying to switch from client to server side scripting - having trouble getting my multiple filters to work. Actually, I can't get one filter to work.

    The code I have seems to work on the initial load, but changing the select filter has no effect. Here is my code, which you can find here: https://re.templeton.org/humility_poc/reconciliation_test1.html

      <script type="text/javascript">
      $(document).ready(function() {
          $('#pub_table').DataTable( {
            caseInsensitive: true,
            dom: 'lrtipB',
            processing: true,
            serverSide: true,
            ajax: {
              url: "reconcile_output_data.php",
              "type": "GET",
              "data": function(d) {
                     return $.extend( {}, d, {
                        "pub_table_col6_filter": $('#pub_table_col6_filter').val()
                      } );
              }
            },
            buttons: ['copy', 'excel'],
            scrollY:        "300px",
            scrollX:        true,
            scrollCollapse: true,
            paging:         false,
            fixedColumns:   {
                heightMatch: 'none'
            },
            "order": [[ 1, "desc" ]],
            "aoColumns": [
                { "orderSequence": [ "desc", "asc" ] },
                { "orderSequence": [ "desc", "asc" ] },
                { "orderSequence": [ "desc", "asc" ] },
                { "orderSequence": [ "desc", "asc" ] },
                { "orderSequence": [ "desc", "asc" ] },
                { "orderSequence": [ "desc", "asc" ] },
                { "orderSequence": [ "desc", "asc" ] },
                null,
                null,
            ],
            "columnDefs": [
                { targets: [7,8], visible: false},
                { targets: '_all', visible: true}
            ]
    
          } );
    
      });
    
        function filterColumn ( i ) {
    //      $('#' + field_input_table).DataTable().column( i ).search($('#' + field_input_table + '_col'+i+'_filter').val(), 'on', 'on').draw();
          $('#pub_table').DataTable().draw();
        }
    
        $(document).ready(function() {
          $(".column_filter").change(function() {
            field_input_table = $(this).parents('div').attr('datatable');
            filterColumn( $(this).attr('col_filter_num') );
          } );
        } );
    
      </script>
    
    
    <div id="pubfilterpanel" datatable="pub_table">
    <table style="width:100%" >
    <tbody>
    
    <tr>
    <td>Id:</td>
    <td><input type="text" class="column_filter" id="pub_table_col0_filter" col_filter_num=0></td>
    <td>&nbsp;</td>
    <td>Project</td>
    <td><select class="column_filter" id="pub_table_col8_filter" col_filter_num=8>
    <option value="">All
    <option value="^Humility Final">Humility Final
    </select></td>
    <td>&nbsp;</td>
    <td>Year:</td>
    <td><input type="text" id="pub_table_year_min" class="column_filter_minmax" size="2"> Min <input type="text" id="pub_table_year_max" class="column_filter_minmax" size="2"> Max</td>
    </tr>
    
    <tr>
    <td>Publication Name:</td>
    <td><input type="text" class="column_filter" id="pub_table_col2_filter" col_filter_num=2></td>
    <td>&nbsp;</td>
    <td>Agreement?</td>
    <td><select class="column_filter" id="pub_table_col5_filter" col_filter_num=5>
    <option value="">All
    <option value="Yes">Yes
    <option value="No">No
    </select></td>
    <td>&nbsp;</td>
    <td>Number of Reviews</td>
    <td><input type="text" id="pub_table_rev_min" class="column_filter_minmax" size="2"> Min <input type="text" id="pub_table_rev_max" class="column_filter_minmax" size="2"> Max</td>
    </tr>
    
    <tr>
    <td>Publication Title:</td>
    <td><input type="text" class="column_filter" id="pub_table_col3_filter" col_filter_num=3></td>
    <td>&nbsp;</td>
    <td>Final</td>
    <td><select class="column_filter" id="pub_table_col6_filter" col_filter_num=6>
    <option value="">All
    <option value="Yes" selected>Yes
    <option value="No">No
    </select></td>
    </tr>
    
    <tr>
    <td>Reviewer Name</td>
    <td><input type="text" class="column_filter" id="pub_table_col7_filter" col_filter_num=7></td>
    <td>&nbsp;</td>
    </tr>
    
    
    </tbody></table>
    </div>
    <p>
    
    <table id="pub_table" class="stripe row-border order-column" style="width:100%" border=1 cellpadding=2 cellspacing=0>
     <thead>
      <tr>
        <th align=left>Id</th>
        <th align=left>Year</th>
        <th align=left>Name</th>
        <th align=left>Title</th>
        <th align=center>#Reviews</th>
        <th align=center>Agree?</th>
        <th align=center>Final?</th>
        <th align=center>Reviewers</th>
        <th align=center>Project</th>
       </tr>
     </thead>
    
    </table>
    

    0 0

    Just like to say that DataTables seems great so far - good job!

    I've just set up DataTables to display some internal data for staff. I want to be able to use the search functionality provided with DataTables and I can see that there is an input for this by default. It was working at one point but now it seems to do nothing when I type into it. I'm not sure what I;'ve done to break it. All I have is the following:

    HTML:

    <table id="ops-br-table" class="table-full-width">
        <thead>
            <tr>
                <th>Request Date</th>
                <th>Operator</th>
                <th>Tour ID</th>
                <th>Tour Name</th>
                <th>Duration</th>
                <th>Comments</th>
                <th>Name</th>
                <th>Email Address</th>
                <th>Brochure Sent</th>
                <th>First Chase Sent</th>
                <th>Second Chase Sent</th>
            </tr>
        </thead>
        <tbody>
    
        </tbody>
    </table>
    

    JavaScript:

    $('#ops-br-table').DataTable({
        ajax: {
            url: tap.settings.apiBaseUrl + 'interactions/brochurerequests',
            dataSrc: ''
        },
        columns: [
            {
                data: 'requestDate',
                type: 'date',
                render: $.fn.dataTable.render.moment('YYYY-MM-DDTHH:mm:ss', 'ddd DD MMMM YYYY'),
                defaultContent: ''
            },
            { data: 'tourDetail.operator.name' },
            { data: 'tourId' },
            { data: 'tourDetail.tourName' },
            { data: 'tourDetail.tourDuration' },
            { data: 'userComment' },
            { data: 'user.friendlyIdentifier' },
            { data: 'user.email' },
            {
                data: 'sentDate',
                type: 'date',
                render: $.fn.dataTable.render.moment('YYYY-MM-DDTHH:mm:ss', 'ddd DD MMMM YYYY'),
                defaultContent: ''
            },
            {
                data: 'firstChaseDate',
                type: 'date',
                render: $.fn.dataTable.render.moment('YYYY-MM-DDTHH:mm:ss', 'ddd DD MMMM YYYY'),
                defaultContent: ''
            },
            {
                data: 'secondChaseDate',
                type: 'date',
                render: $.fn.dataTable.render.moment('YYYY-MM-DDTHH:mm:ss', 'ddd DD MMMM YYYY'),
                defaultContent: ''
            }
        ]
    });
    

    Any help would be greatly appreciated!


    0 0

    Hello, is there any way to have a select column filter that works on a hidden column?
    I want to be able to filter a column which is also a row group while keeping the column hidden, not the row group.
    any help would be appreciated, i am not very experienced with this.
    Thanks

    $(document).ready( function () {
        $('#example').DataTable(
        {
            
            responsive: true,
            scrollY:'40vh',
            scrollCollapse: true,
            columnDefs: [
            { targets: [0, 3, 4, 5, 7, 8, 9, 11, 12], visible: true},
            { targets: '_all', visible: false },
            
            { width: "40%", targets: [5] }
        ],
            
            
            "order": [[ 0, "asc" ]],
            rowGroup: {
                
                enable: true,
                dataSrc: 1,
            },
             initComplete: function () {
                this.api().columns([1]).every(function () {
                    var column = this;
                    var select = $('<select><option value=""></option></select>')
                        .appendTo( $(column.footer()).empty() )
                        .on( 'change', function () {
                            var val = $.fn.dataTable.util.escapeRegex(
                                $(this).val()
                            );
     
                            column
                                .search( val ? '^'+val+'$' : '', true, false )
                                .draw();
                        } );
     
                    column.data().unique().sort().each( function ( d, j ) {
                        select.append( '<option value="'+d+'">'+d+'</option>' )
                    } );
                } );
            }
    }
        
        );
        
    } );
    
    

    0 0

    Hi everyone.

    I have a project where I format my cells according to the danish format, which is . for thousands and , for decimals (Example: 1.265,95 observations per month)

    Since I use DataTables on multiple pages, I've created a language file for danish:

    dataTables.danish.lang:

    {
      "thousands": ".",
      "decimal": ",",
      "sProcessing":   "Henter...",
      "sLengthMenu":   "Vis _MENU_ linjer",
      "sZeroRecords":  "Ingen linjer at vise",
      "sInfo":         "Viser _START_ til _END_ af _TOTAL_ linjer",
      "sInfoEmpty":    "Viser 0 til 0 af 0 linjer",
      "sInfoFiltered": "(filtreret fra _MAX_ linjer)",
      "sInfoPostFix":  "",
      "sSearch":       "S&oslash;g i liste:",
      "sUrl":          "",
      "oPaginate": {
        "sFirst":    "F&oslash;rste",
        "sPrevious": "Forrige",
        "sNext":     "N&aelig;ste",
        "sLast":     "Sidste"
      }
    }
    

    This file is loaded through AJAX like this:

    $(document).ready( function () {
        $('#table').DataTable({
            paging: true,
            pageLength: 100,
            lengthChange: false,
            searching: true,
            info: false,
            order: [6, 'desc'],
            language: {
                url: "/dataTables.danish.lang"
            }
        });
    } );
    

    It results in 999 being sorted above 9.988

    However, if I change the language block to the following:

    language: {
        url: "/dataTables.danish.lang",
        thousands: ".",
        decimal: ","
    }
    

    Then the sorting works. This must mean that DataTables initially sorts the data using the default separators which is opposite (, for thousands, . for decimal) and then does not re-sort the data once the language file is loaded.

    So my two questions are:

    1. In initComplete, how can I manually trigger a re-parse of the DOM to enable the correct sorting?
    2. Could it be a feature request for DataTables to do this automatically when thousands or decimal has been defined in a file, fetched by language.url ?

    Thank you for your time.


    0 0

    I have a column in a table that calculates a running total in a table:

    "render": function ( data, type, row, meta ) {  
        if (meta.row == 0) {
            requestedRunningTotal = Number(row[meta.col - 1]);
        } else {
            requestedRunningTotal = requestedRunningTotal + Number(row[meta.col - 1]);
        }
    
        return requestedRunningTotal;
    }
    

    It works fine but does not recompute if the table is filtered (values being filtered are in another column). Is there a way to cause the column or cells to recompute using the displayed filtered rows, i.e., show the running total of the filtered values?

    Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.


    0 0

    I have been trying to Sort the table by two columns one by date time which i can do by using the order attribute but the other is by status which is proving to be a bit more difficult. This is what I have so far
    $(document).ready(function () {
    var table = $("#RequestDetSubmittedReq").DataTable({
    responsive: true,
    //paging: true,

       fixedColumns: true,
       ordering: true,
       columnDefs: [
           {
               width: '20%', targets: 0
           },
           {
               targets: [5],
               orderData: [5, 6]
           },
           {
               targets: [6],
               orderData: [5, 6]
           }
    
       ],
       "order":[[5, "desc"],[6,"asc"]],
        "language":
            {
                "emptyTable": "There are currently no submitted request"
            }             
    });
    

    });
    The Data Consists of one of these (Pending/rejected/Approved) this on column 6.
    The table is being created by razor and Datatable is being used on client side only.


    0 0

    Is it possible to get selected row information when you use the edit button to open the editor dialog? I would like to customize the title of the dialog with information from the row; currently I do this thru click handlers:

    $('#the-table tbody').on( 'click', 'tr td.cell-being-clicked', function () {    
      var rowId = $(this).closest('tr').find(".the-row-id").html();
    
      editor
        .title( 'Edit ' + rowId + ' Values')
        .buttons( 'Update' )
        .edit( $(this).closest('tr') );
    });
    

    If I can get row information I can use the open event instead to set the title for all editor dialog calls.


    0 0

    I'm trying to set up some date columns with a custom date format. I started with format 'ddd DD MMM YYYY' but realised this would be too long so I've now changed to 'ddd DD/MM/YYYY' to save a bit of horizontal space. All the dates and sorting were working fine when I was using 'ddd DD MMM YYYY'.

    Since changing the format, I'm getting a weird 'Invalid Date' issue.

    HTML

    <table id="ops-br-table" class="table-full-width table table-striped table-minimal-padding">
        <thead>
            <tr>
                <th>Request Date</th>
                <th>Operator</th>
                <th>Tour ID</th>
                <th>Tour Name</th>
                <th>Duration</th>
                <th>Comments</th>
                <th>Name</th>
                <th>Email Address</th>
                <th>Brochure Sent</th>
                <th>Planned First Chase</th>
                <th>First Chase</th>
                <th>Planned Second Chase</th>
                <th>Second Chase</th>
            </tr>
        </thead>
        <tbody>
    
        </tbody>
    </table>
    

    JavaScript

    $.fn.dataTable.moment('ddd DD/MM/YY');
    $('#ops-br-table').DataTable({
        ajax: {
            url: settings.apiBaseUrl + 'interactions/brochurerequests',
            dataSrc: ''
        },
        columns: [
            {
                data: 'requestDate',
                type: 'date',
                render: function (data, type, row) { return data ? moment(data).format('ddd DD/MM/YY') : ''; }
            },
            { data: 'tourDetail.operator.name' },
            { data: 'tourId', width: "5%"  },
            { data: 'tourDetail.tourName', width: "10%" },
            { data: 'tourDetail.tourDuration' },
            { data: 'userComment', width: "15%" },
            { data: 'user.friendlyIdentifier' },
            { data: 'user.email' },
            {
                data: 'sentDate',
                type: 'date',
                render: function (data, type, row) { return data ? moment(data).format('ddd DD/MM/YY') : ''; }
            },
            {
                data: 'plannedFirstChaseDate',
                type: 'date',
                render: function (data, type, row) { return data ? moment(data).format('ddd DD/MM/YY') : ''; }
            },
            {
                data: 'firstChaseDate',
                type: 'date',
                render: function (data, type, row) { return data ? moment(data).format('ddd DD/MM/YY') : ''; }
            },
            {
                data: 'plannedSecondChaseDate',
                type: 'date',
                render: function (data, type, row) { return data ? moment(data).format('ddd DD/MM/YY') : ''; }
            },
            {
                data: 'secondChaseDate',
                type: 'date',
                render: function (data, type, row) { return data ? moment(data).format('ddd DD/MM/YY') : ''; }
            }
        ],
        order: [
            [ 0, "desc"]
        ],
        pageLength: 25
    });
    

    Here's a Fiddle without the AJAX dependency: https://jsfiddle.net/rk6e10ft/

    Interestingly, in the fiddle, the only date that works is "Mon 11/06/18" but if I change this to "Mon 20/06/18" then it breaks too. It's like it's getting the day and month values confused or something. Is it something to do with the forward slashes? If so, I've already tried escaping them with square brackets as described here: https://stackoverflow.com/questions/28241002/moment-js-include-text-in-middle-of-date-format which did not work.

    EDIT: Updated fiddle and removed escaping square brackets from formats.


    0 0

    Data Table

    $(document).ready(function() {
    
    
          var advance = $('#advanced-table').DataTable( {
                  
            
          dom: 'B<"clear">lfrtip',
      
        "processing": true,
        "serverSide": true,
    
          "ajax":{
                            url :"server_processing.php ", // json datasource
                            type: "post",  // method  , by default get
                            
                        },
             
    
          
              mark: true,
               columnDefs: [
                {
                    targets: 1,
                    className: 'noVis',
            
                },
                {
                    "targets": [ 6 ],
                    "visible": false
                },
                {
                    "targets": [ 7 ],
                    "visible": false
                }   
                
            ],
          
        buttons: {
            name: 'primary',
    
            buttons: [ 'copy', 'csv', 'excel', 'pdf', 'print', 'colvis'  ]
        },
              
              
      
        
              //"language": {
                    //"url": "http://cdn.datatables.net/plug-ins/1.10.13/i18n/Portuguese-Brasil.json"
               // } 
              
       
        } );
    
        
        $('a.toggle-vis').on( 'click', function (e) {
            e.preventDefault();
     
            // Get the column API object
            var column = advance.column( $(this).attr('data-column') );
    
            // Toggle the visibility
            column.visible( ! column.visible() );
        } );  
        
    
    
    // Setup - add a text input to each footer cell
        $('#advanced-table tfoot th').each( function () {
            var title = $(this).text();
            $(this).html( '<div class="md-input-wrapper"><input type="text" class="md-form-control" placeholder="Pesquisar '+title+'" /></div>' );
        } );
          // Apply the search
        advance.columns().every( function () {
            var that = this;
     
            $( 'input', this.footer() ).on( 'keyup change', function () {
                if ( that.search() !== this.value ) {
                    that
                        .search( this.value )
                        .draw();
                }
            } );
        } );
    
        
    
        } );
    

    server_processing.php

    <?php
    /* Database connection start */
    $servername = "localhost";
    $username = "root";
    $password = "";
    $dbname = "entt";
    
    $conn = mysqli_connect($servername, $username, $password, $dbname) or die("Connection failed: " . mysqli_connect_error());
    
    /* Database connection end */
    
    
    // storing  request (ie, get/post) global array to a variable  
    $requestData= $_REQUEST;
    
    
    $columns = array( 
    // datatable column index  => database column name
        0 =>'ID', 
        1 =>'Nome', 
        2 => 'E-mail',
        4 => 'Cidade',
        5 => 'Estado',
        6 => 'Cep',
        7 => 'Data',
        8 => 'Hora',
        9 => 'Status'
    );
    
    // getting total number records without any search
    $sql = "SELECT id, email, nome, cidade, estado, cep, data, hora ";
    $sql.=" FROM usuarios";
    $query=mysqli_query($conn, $sql) or die("server_processing.php: get usuarios");
    $totalData = mysqli_num_rows($query);
    $totalFiltered = $totalData;  // when there is no search parameter then total number rows = total number filtered rows.
    
    
    $sql = "SELECT id, email, nome, cidade, estado, cep, data, hora ";
    $sql.=" FROM usuarios WHERE 1=1";
    if( !empty($requestData['search']['value']) ) {   // if there is a search parameter, $requestData['search']['value'] contains search parameter
        $sql.=" AND ( id LIKE '".$requestData['search']['value']."%' "; 
        $sql.=" OR nome LIKE '".$requestData['search']['value']."%' ";
        $sql.=" OR email LIKE '".$requestData['search']['value']."%' ";
        $sql.=" OR cidade LIKE '".$requestData['search']['value']."%' )";
        $sql.=" OR estado LIKE '".$requestData['search']['value']."%' )";
        $sql.=" OR cep LIKE '".$requestData['search']['value']."%' )";
        $sql.=" OR data LIKE '".$requestData['search']['value']."%' )";
        $sql.=" OR hora LIKE '".$requestData['search']['value']."%' )";
    }
    $query=mysqli_query($conn, $sql) or die("server_processing.php: get usuarios");
    $totalFiltered = mysqli_num_rows($query); // when there is a search parameter then we have to modify total number filtered rows as per search result. 
    $sql.=" ORDER BY ". $columns[$requestData['order'][0]['column']]."   ".$requestData['order'][0]['dir']."  LIMIT ".$requestData['start']." ,".$requestData['length']."   ";
    /* $requestData['order'][0]['column'] contains colmun index, $requestData['order'][0]['dir'] contains order such as asc/desc  */    
    $query=mysqli_query($conn, $sql) or die("server_processing.php: get usuarios");
    
    $data = array();
    while( $row=mysqli_fetch_array($query) ) {  // preparing an array
        $nestedData=array(); 
    
        $nestedData[] = $row["id"];
        $nestedData[] = $row["nome"];
        $nestedData[] = $row["email"];
        $nestedData[] = $row["cidade"];
        $nestedData[] = $row["estado"];
        $nestedData[] = $row["cep"];
        $nestedData[] = $row["data"];
        $nestedData[] = $row["hora"];
        $data[] = $nestedData;
    }
    
    
    
    $json_data = array(
                "draw"            => intval( $requestData['draw'] ),   // for every request/draw by clientside , they send a number as a parameter, when they recieve a response/data they first check the draw number, so we are sending same number in draw. 
                "recordsTotal"    => intval( $totalData ),  // total number of records
                "recordsFiltered" => intval( $totalFiltered ), // total number of records after searching, if there is no searching then totalFiltered = totalData
                "data"            => $data   // total data array
                );
    
    echo json_encode($json_data);  // send data as json format
    
    ?>
    

    DataTables warning: table id=advanced-table - Requested unknown parameter '8' for row 0, column 8. For more information about this error, please see http://datatables.net/tn/4


    0 0

    Hi all together,

    I combined the custom rendering and the Data source change event examples from this page: https://datatables.net/extensions/rowgroup/examples/

    Instead of average salary in the custom rendering example, I used the sum() function to have the sum of salary for each city.

    I now need to have a sort option which will sort the groups using the summed up value. When I now click on the last column the single elements in each city will be ordered, but I need the whole groups ordered using the summed up values.

    So, e.g. London is the city with the highest over all salaries, the "London group" should be up, next the second highest salary group and so on.

    This is my current script: https://pastebin.com/KkwYcmNG

    Hope you can help me out here! I tried to built an example in jsfiddle, but I wasn't able to get the custom rendering example running on jsfiddle. If you have a jsfiddle link with this example running I am happy to add all further details of my code.

    Thank you so much!


    0 0

    Hello,

    as the title says I want to fix the third and fourth in a table. The data is hierarchical so I can't change the order. To save some screen space is it somehow possible the skip the first two colums while using FixedColumns?


    0 0

    I would like to be able to select a row with a specific id that I pass
    I would like to select a specific row when starting the table
    Gracias.


    0 0

    Hi all together,

    https://datatables.net/extensions/rowgroup/examples/initialisation/customRow.html

    I like to have a possibility to click on the group name like "Averages for Edinburgh" and the group should expand/collapse. Per default when loading the site, the group should be collapsed.

    For doing that, I also found this thread here, where redwall was able to embed such a function for his DataTable:
    https://datatables.net/forums/discussion/comment/61474/#Comment_61474

    But my Javascript skills are less than available :)

    Would someone of you be so kind and help me out here? How can I reach the above described functionality on the basic example of "Custom row rendering / aggregates"?

    Thank you for your help!!


    0 0

    I'm using PHP version 7.x where PDO is depreciated and mysqli is the best choice. Do your products have a mysqli based data connector that will work with PHP 7.x?


    0 0

    Is there a way to save a hidden column such as a "last_viewed" column without opening the editor modal?


    0 0

    Hi guys,
    I'm selecting the data from my table and return the selected data to a variable with the following code:

    $('#dataTable tbody').on( 'click', 'tr', function () {
                $(this).toggleClass('selected');
                array = dtHandler.rows('.selected').data().toArray();
            } );
    

    I want to update the selected rows in the table whenever the array changes, I've got a method to watch for the array changes but I can't figure out how to set the selected rows giving it the array of objects


    0 0

    Hi,

    I'm having an issue
    I have a lot of columns let say 15
    I'm using responsive
    I'm using savestate
    When using the main search let say I search for John
    Then I go to another page and get back, the result is ok and still there
    Now if I clear the search field
    Then the columns are not well aligned they are a little bit outside the template
    If refresh the page this is ok.

    This occurred only if I quit and get back and clear the search value.
    It does not occurred if I don't quit the page.

    The only solution I have for now is to reload the page on clear search
    but I'm wondering if someone have encounter this and have a solution for this.


older | 1 | .... | 2256 | 2257 | (Page 2258) | 2259 | 2260 | .... | 2326 | newer