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

Bamboo Dinner Set

$
0
0

Why choose bamboo fiber tableware?Traditional stainless steel cutlery,Website:http://www.planttableware.com, stainless steel will release heavy metals, which will cause baby kidney failure.Inferior plastic tableware, bisphenol A and chemical additives can cause cancer.Our FAQ:How does your factory do regarding quality control? Quality is priority. We always attach great importance to quality control from the very beginning to the end of the production. Every product will be fully assembled and carefully tested before it's packed for shipment.Can you do our own design?Yes, we can do customized designs,customized logo,customized color and customized package.Specifications of bamboo fiber kids tableware sets:Cozy kitchen healthy partner to redefine a new benchmark for green kitchen.Understated yet elegant style, reflecting the owner sophisticated lifestyle,pure zero pollution,home health care,feeling delicious taste texture, the whole family happy and enjoy every meal.


Fresh Tea Leaves Withering Machine

$
0
0

Structure  The tea withering machine consists of the frame,Website:http://www.kuntok.com, heat supply system and fans set and it is characterized that in the heat
supply system a hot air duct is axially set in the cavity of the drum, the wall of the hot air duct is provided with air outlet holes, and the wall of the cavity of the said drum is provided with inclined stagger-distributed screw conveyance pieces and several axial distributed tea-turning plates. The temperature of the blast is adjustable from normal temperature to 100℃ , which may fast remove moisture from the surface of fixed leaves, and prevents the withering and green tea kneading from weather impact. The primary processed tea has good and stable quality, and compared with traditional method, it saves great amount of machine, labors,
materials and energy consumption. >Roles  The collected green leaves are spread in a given thickness, and through air-drying they are under the withered state.During the withering process, the green leaves are subjected to a series of change: the moisture diminishes, the leaf becomessoft from brittle-hard to facilitate rolling and striping, the activity of the enzyme-containing substances increases, which promotesthe decomposition and transformation of the green leaf ingredients (starch, protein and insoluble protopectin) to form effectivesubstances advantageous to quality of fnished tea (such as glucose, amino acid, and soluble protopectin), and somewhat oxidizespolyphenol-like substances. normal and effective withering will remove grass aroma from green leaves and generate delicatefragrance and fruit or flower flavor, and the fnished tea is full of pure elegance but is not bitter. The withering requires propertemperature, RH and air circulation. The frst process in making Chinese white tea, black tea and Oolong tea is withering at differentdegree. The withering degree of the white tea is the highest, and the water content in the green leaf shall be lowered to below 40%,that of the black tea is secondary and the water content in the green leaf shall be lowered to about 60%, and that of the oolong teais the lowest, and the water content in the green leaf shall be lowered to 68%-70%.  >EASY OPERATION AND MANTENANCE   ONE STOP FACTORY SERVICES  ParametersModelOutside dimensionsIntegralpowerWork voltageLength WidthHeight YX-6CWD1200mm760mm600mm13kw380V

Green Tea Withering Machine

$
0
0
>Tea withering processing machine


The machine is a high-grade black tea processing machinery. When the machine is working ,Website:http://www.kuntok.com, the tea leaves on the stainless steel belt of the machine would be evenly spread cool. It makes most of the low-temperature hot air to make the fresh tea leaves loose the water and achieve the purpose of withering. The withering leaves is used for the next process of rolling .


 


 


>EASY OPERATION AND MANTENANCE   ONE STOP FACTORY SERVICES 


  





>Specification



 
  Model 
 outside    dimensions 
Work output 
  (tedding calculated   on basis  of fresh leaves
Integral power 
Work 
    voltage 
Material


Length 
  (standard specification) 
Length
    (special 
    specification) 
 Width x height
  (standard specification) 


YX-6CWD-5B 
5000mm 
 
1250 x 770 (mm) 
20-25kg/m 
13kw 
380v 
corrosion resistant steel plate


YX-6CWD-5W 
5000mm 
As per client’s requirement 
1050 x 770 (mm) 
20-25kg/m 
13kw 
380v 
corrosion resistant steel plate

Black Tea Processing Fixing Machine

$
0
0

Steam fixation machine unitThis machine unit adopts a number of core patented technology owned by the company,Website:http://www.kuntok.com,integrating steam heating stove,high- temperature steam fixation machine,high-temperature hot air dehydrator into one unit. Heat steam generator can produce steam at 120-180 ° C and hot air at 130-160 ° C,ensuring the completion of continuous fresh leaf fixation and dehydration. After fixing,water content of the processed products is about 58%,in accordance with the requirements of the latter rolling and carding procedure,with features of high quality and efficiency,leaf completeness,primary color keeping,energy saving and environmental protection,easy control,etc. Its effect of removing the bitter taste of summer and autumn tea is particularly noticeable. It is not only suitable for the famous tea fixing and dehydration, but also suitable for the processing of leafy agricultural and sideline products.  >EASY OPERATION AND MANTENANCE   ONE STOP FACTORY SERVICES   >SpecificationModel

PPS Ferrite

$
0
0

PPS ferrite magnet injection molded magnetBrand Name:ABMModel Number:Injection molded magnetType:PermanentComposite:NdFeB/Ferrite/binder (PPS,Website:http://www.plastic-magnet.com, PA6/PA12)Shape:according to customer's requirementApplication:Industrial MagnetSize:Customized Magnet SizeCertification:ROHSMagnetism direction:Customzied Specific RequirementsProduct Name:Injection molded magnetTolerance:0.05mmMaterial:NdFeB, Ferrite, binder (PPS,PA6,PA12)Grade:Br (1800-6100gauss)About Injection Molded MagnetsInjection molded magnets are essentially fully dense magnetic powders blended with a variety of thermoplastic base materials. Depending on the combination of magnetic material and thermoplastic selected, a wide range of final magnetic properties and mechanical properties will be.Advantages Of Injection Molded Magnets- Complicated shape- High variety of field distributions- Magnetizing with complex patterns- Good mechanical strength- Low cost- Low weight- High output rates

Injection Molded Ferrite

$
0
0

Product name: Custom injection mold ferrite magnets   1.Grade:  Y10T,Website:http://www.plastic-magnet.com, Y20, Y25, Y30, Y30BH, Y35 and etc.2.Shape: Disc, Cylinder, Block, Ring, Countersunk, Segment, Trapezoid, Irregular shapes and more. Customized Design (Design proper magnets for clients specific requirements)3.Sorts: We have Disc Ferrite Magnets, Segment Ferrite Magnets, Ring Ferrite Magnets, Block Ferrite Magnets, Cylinder Ferrite Magnets, Irregular Ferrite Magnets,  Sintered Ferrite Magnets, Bonded Ferrite Magnets and many other series.The main advantages of magnetic piastics is:low density ,high impact strength ,for cutting ,cutting , drilling ,grinding ,laminating and embossing processing etc. when used without fragmentation ,it can be used in general machining method of general –purpose plastics (such as injection molding ,extrusion , etc.)for processing ,can be processed into size high precision thin wall complex shape products ,with insert molding products ,realize the miniaturization, electromagnetic equipment lightweight ,precision and high performance.Magnetic plastics can be used in many devices .Such as:Audio equipment: coupler ,phonograph with rotating transformer ,TV receiver and computer monitors , CRT ,color puyity convergence adjusting ring ,motor and sensor ,FG CD and VCD tape recorder rotating head drive motor ,door motor ,magnet and earphone loudspeaker magnet tape recorder;Household appliances :refrigerators ,refrigerator door sealing strip ,disinfection cabinet ,bathroom , washing machine drain valve motor ,timer motor ,electric cooker seat ,TV sets ,video recorders ,washing machine ,vacuum cleaners and other electrical components;Computer and office:a floppy drive motor ,feed motor ,cooling type axial flow fan ,CRT display correction device;electrostatic copier magnetic roller ,magnetic roller ,cleaning the fax machine in the magnetic roller ,magneticroller laser printer;Automotive Industry :Auto contactless distributor ,magnetic gasket ,stepping motor for fuel injection pump ,shockprool sticking board;Health ,culture ;magnetic health care products ,magnetic therapy mattress ,magnetic rotor ,toilet soap box;magnetic drawing board ,student stationery ,teaching aids , advertising ,display magnetic blackboard;furniture door buckle various magnetic toys etc.

Plastic Ferrite

$
0
0

SpecificationsInjection molded magnets 1)Best quality and good price 2)High precision 3)Excellent magnetic propertiesInjection molded magnets :Injection molded magnets are available using ferrite,Website:http://www.plastic-magnet.com, neodymium-iron-boron, or blends of magnetic materials to achieve an extensive range of properties. Binder types include Nylon 6 and 12, PPS, and Polyamide. The binders and magnetic alloys are capable of a wide range of application temperatures from below -40

Uncaught TypeError: table.row is not a function

$
0
0

$('#showTable tbody').on('click', 'tr', function () {
console.log($(this).find("td"));
var td = $(this).find("td");
$(".odd").css("color", "black");
$(".even").css("color", "black");
$(".odd").css("font-weight", "normal");
$(".even").css("font-weight", "normal ");

    $(this).css("color", "red");
    // $(this).css("color","red");
    // $(this).css("font-style","italic");
    //   $(this).css("font-weight","bold");

    var data = td.eq(1).html();
    $("#hit").val(data);
});

function clearSearch() {
    $("#studentName").val("");
    queryAssessGradeList()
}

// $(function(){
//     var table = $('#table').DataTable({
var assessGradeTable;

function queryAssessGradeList() {
    var params = {};
    params.assessId = $("#assessId").val();
    params.classId = $("#classId").val();
    params.studentName = $("#studentName").val();

    var shabi = $("#head_grade").val();
    // var ss=$("#head_grade").val();
    if (shabi < 70) {
        shabi.css("color", "#f00");
    }

    var colums = [
        {
            "mData": "order",
            "sClass": "center",

        },
        {
            "mData": "stu_name",
            "sClass": "center",
        },
        {
            "mData": "head_grade",
            "sDefaultContent": "",
            "sClass": "center",
            "mRender": function (data, type, full, meta) {
                if (data == '' || data == null) {
                    return "未录入";
                } else {
                    return data;
                }
            }
        },
        {
            "mData": "help_grade",
            "sDefaultContent": "",
            "sClass": "center",
            "mRender": function (data, type, full, meta) {
                if (data == '' || data == null) {
                    return "未录入";
                } else {
                    return data;
                }
            }
        },
        {
            "mData": "lecturer_grade",
            "sDefaultContent": "",
            "sClass": "center",
            "targets": [3],
            "mRender": function (data, type, full, meta) {
                if (data == '' || data == null) {
                    return "未录入";
                } else {
                    return data;
                }
            }
        },
        {
            "mData": "avg",
            "sDefaultContent": "",
            "sClass": "center",
            "mRender": function (data, type, full, meta) {
                var assessGradeId = full.assess_grade_id;
                if (data == '' || data == null) {
                    return "0";
                } else {
                    return data.toFixed(2);
                }
            }
        },
        {
            "mData": "assess_grade_remark",
            "sDefaultContent": "",
            "sClass": "center",
            "mRender": function (data, type, full, meta) {
                if (data == '' || data == null) {
                    return "无";
                } else {
                    return data;
                }
            }
        },
        {
            "mData": "stu_id",
            "sClass": "center",
            "mRender": function (data, type, full, meta) {
                var assessId = $("#assessId").val();
                var assessGradeId = full.assess_grade_id;
                if (assessGradeId == undefined || assessGradeId == null) {
                    return '<button  class="btn btn-xs btn-info" onclick="editAssessGrade(' + data + ',' + assessId + ')">录入成绩</button> ';
                } else {
                    return '<button  class="edit-btn btn-xs btn-info">修改成绩</button> ' +
                            // '<button  class="save-btn btn-xs btn-info" onclick="save(' + data + ',' + assessId + ',' + assessGradeId + ')">保存成绩</button> '+
                            '<button  class="btn btn-xs btn-danger" onclick="removeAssessGrade(' + assessGradeId + ')">撤销</button> ';
                }
            }
        }
    ];

    getTableData("showTable", "${link.contextPath}/stch/assess/grade/getListData", colums, JSON.stringify(params));
    $('.icon-double-angle-left').replaceWith('< ');
    $('.icon-double-angle-right').replaceWith('>');
    var table = $("#showTable").DataTable();
    $("table tbody").on("click", ".save-btn", function () {
        alert(1);
        var row=table.row($(this).parents("tr"));
        // table.row1
        var tds = $(this).parents("tr").children();
        $.each(tds, function (i, val) {
            var jqob = $(val);
            //把input变成字符串
            if (!jqob.has('button').length) {
                var txt = jqob.children("input").val();
                jqob.html(txt);
                table.cell(jqob).data(txt);//修改Datatable对象数据
            }
        });
        var data = row.data();
        alert(data);
        $.ajax({
            "url": "${link.contextPath}/stch/assess/grade/editOne",
            "data": data,
            "type": "post",
            "error": function (response) {
                alert("服务器正常响应,请重试")
            },
            "success": function (result) {
                if (result.isSuccess) {
                    queryAssessGradeList();
                }
            }
        });
        $(this).html("编辑");
        $(this).toggleClass("edit-btn");
        $(this).toggleClass("save-btn");
    });
    //
    // if (table) {alert(344);
    //     table.fnClearTable();
    //     table.fnDestroy();
    //     //回调函数 判断是是否有值
    // }

}
queryAssessGradeList();



$("table tbody").on("click", ".edit-btn", function () {
    debugger
    var tds = $(this).parents("tr").children();
    $.each(tds, function (i, val) {
        var jqob = $(val);
        if (i < 2 || jqob.has('button').length){
            return true
        }
        ;//跳过第1项 序号,按钮
        var txt = jqob.text();
        var put = $("<input type='text' style='width:39px' value='' >");
        put.val(txt);
        jqob.html(put);
    });
    $(this).html("保存");
    $(this).removeClass("edit-btn");
    $(this).addClass("save-btn");
});

search does not search inside child records

$
0
0

Hi, Following up in this example, i am trying to make it work.

  1. reload does not keep the state saved, if more functionality of adding child data is added

    1. it does search in the child subset, i tried searching the extension number but it returned empty results

Target li in responsive datatable

$
0
0

Hi, I am currently targeting columns in the main table view (not responsive) using the following rowCallback

"rowCallback": function (row, data) {
    checkInStash(exid, data.flavour_name, data.flavour_company_name).done(function(data){ 
        if(data == true) {
               $(row).addClass( 'instash' );
               $(row).find('td:eq(5)').html('<button class="btn btn-primary flavour-stash">Remove From Stash</button>');
                            
        } else {
            $(row).removeClass( 'instash' );
            $(row).find('td:eq(5)').html('<button class="btn btn-primary flavour-stash">Add To Stash</button>');
        }
});

How can I target the li of the responsive table to do the same thing?

You can see the table here: https://vccalc.vapingcommunity.co.uk/flavours

Thanks in advance

Fixed Header is not working

$
0
0
  var  sortableTable = $('.tab-pane .table').DataTable({
            paging: false,
            searching:false,
            fixedHeader: true,
            stateSave: true,   

        });    

nothing works fine I don't know why

Using more than one Datatable with Subtable(s)

$
0
0

Hi Forum,

my name is Dominik and I am new on datatables.net. I have read several threads on several forums, how to init multiple datatables, but at this moment I have no idea, how to init 2 maintables with minimum 1 subtable. Let me scribble the situation:

upper Page: 1 Datatable with 1 SubDatatable
bottom Page: 1 Datatable with 2 SubDatatables

The Problem follows after the Code...

This is my HTML:

<section class="content container-fluid">
    <h2>Normale Bestellungen</h2>
    <table id="maintable" class="display" style="width:100%">
        <thead>
        <tr>
            <th></th>
            <th>ID</th>
            <th>Status</th>
            <th>B-Nummer</th>
            <th>Beschreibung</th>
            <th>Bestelldatum</th>
            <th>Lieferdatum/-typ</th>
            <th>Lieferadresse</th>
            <th>Aktionen</th>
        </tr>
        </thead>
    </table>
    <h2>Sonstige Bestellungen</h2>
    <table id="maintable_orders" class="display" style="width:100%">
        <thead>
        <tr>
            <th>V</th>
            <th>D</th>
            <th>ID</th>
            <th>Datum</th>
            <th>Typ</th>
            <th>Status</th>
            <th>Produktionsnummer</th>
            <th>Werbetermin (KW)</th>
            <th>Liefertermin (KW)</th>
            <th>Notiz</th>
            <th>Aktionen</th>
        </tr>
        </thead>
    </table>
</section>

As you can see at those 3 Comments within the code, everything works except the subtable of the first maintable. The ajax-call is never been initialized, so I don´t get a needed parameter called "marketplace_order_id", thats essential for the non-working subtable.

My comments are on line 9,49 and 52 of the js-textarea.

I hope this is understandable, if I could give additional information please ask.

Thx and regards, Dominik

Inline editor not opening after a select cell

$
0
0

Hi

I have an editor table that has keys enabled so that I can tab through the cells.

One of the cells is a lookup that does a query to fill in the cell contents by showing a list of suggestions. Using the keyboard I can tab into that cell, choose the entry I want by using the cursor key and then tab to accept it.

When tabbing through and not doing this query then the next cell opens up the next inline editor cell.

However when choosing from the list, the cell does not open the inline editor.

I did some tests and the preOpen and open events are being fired, just the editor itself does not actually open.

If I tab to the next cell, that cells opens correctly and if I then do a ctrl-tab to go back to the previous cell then it also opens correctly.

Does anyone have any suggestions as to why the editor is not opening?

Thanks

Dov

Using same tooltips on columnheaders for different users when columns are shifting per user

$
0
0

In Laravel I'm using datatables in combination with adminLTE. In tables the first column is a checkbox column to delete items only visible for admin under Laravel permissions (@can <code> @endcan. I want to use tooltips on three columns. In main.js (file of adminLTE) I've put following code which works nice when logged in as an admin.

$('#DataTables_Table_0 thead th:nth-child(4)').each(function () {
        var $td = $(this);
        $td.attr({title:"tooltiptext4"}, $td.text());
     });
     $('#DataTables_Table_0 thead th:nth-child(5)').each(function () {
        var $td = $(this);
        $td.attr({title:"tooltiptext5"}, $td.text());
     });
     $('#DataTables_Table_0 thead th:nth-child(6)').each(function () {
        var $td = $(this);
        $td.attr({title:"tooltiptext6"}, $td.text());
     });

But for regular users - because of hiding the first column to them - the tooltips are placed on the wrong column headers.
I've tried something with variable 'columnnumber', but this hasn't worked out until now. Someone any idea how to solve this? Maybe in some other way as I'm trying to tackle this?

semantic ui datatables


Respecting data order by in datatable

$
0
0

Hi,

I have a dataset that is previously fetch by date order DESC, but when table shows up the order is ASC. Any idea why the order from the dataset is not respected ? If I use "order": [0, DESC] (0 being the Date column), I can't reorder anymore.

Thank you.

RowCallback / ReRender from Modal Close

$
0
0

I have a bootstrap modal. Once it closes I want to call the "rowCallback" function where I have a lot of logic to alter the html displayed in various cells (dependent upon data).

I could "draw" the whole table, but my data is in a server and takes several seconds to redraw. So, I need a faster way.

I am making a call to an external function in the "rowCallback", so that it is accessible to the modal close event. I am having an issue with the "row" variable... how do I pass this in.

"rowCallback": function (row, data, iDisplayIndex) { 
    //  This works great when called on the initial draw.
        MyExternalFunction(row, data, displayindex)
}


ModalClose
{
        // This works other than first variable.
       var displayindex = Saved in local variable.
       var data = table.row(displayindex).data();

       // The 2 object reference below are correct and accurately get the object, however when passed in to "MyExternalFunction" , DataTable does not reRender.

       Doesn't work -->    var row = $('#Datatable').find('tr').eq(displayindex);  
       Doesn't work -->    var row = table.row(displayindex);  

        MyExternalFunction(row, data, displayindex)
}

MyExternalFunction(row, data, displayindex)
{

  I have a row, object passed in, but doesn't work.
  This works perfectly, other than getting "row" variable from external function.

}

Is there a different way to reRender just the current row so that my cell display the html derived from logic?

How to skip blank rows in footer callback average calculation?

$
0
0

If I have a column that has rows that do not have values, how can I skip them in the footer callback? Here's my footer callback so far. But if there is a row that doesn't have a value then I need to skip it.

Right now it prints NaN in the footer if there are blank rows.

//DataTables
        $(".results-table").DataTable({                 
            "aaSorting": [ ],
            "footerCallback": function(row, data, start, end, display) {
                  var api = this.api();

                  // Remove the comma for calcuations
                var intVal = function ( i ) {
                        return typeof i === 'string' ?
                            i.replace(/,/g,'')*1 :
                    typeof i === 'number' ?
                        i : 0;
                    };

                  var columnData = api.column(0).data();

                //Avg
                api.columns('.avg', {
                    page: 'current'
                  }).every(function() {

                var numerator = this
                                .data()
                                .reduce( function(a, b) {
                                   return (intVal(a) + intVal(b));
                                }, 0);

                    var denominator = this.data().length;

                    avg = numerator / denominator;
                    avg = avg.toFixed(1)

                    $(this.footer()).html("" + avg + "%");
                  });

            } //end footerCallback

        }); //end DataTables

Possible to use DataTables with ASP.Net Dynamically Created Tables?

$
0
0

Currently I have a standard aspx webform that adds table rows/cells within the Page_Load function. Can DataTables.net be used with dynamically created tables?

Is the read only display field type editor plugin dynamic for EVERY row?.

Viewing all 81392 articles
Browse latest View live


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