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

Allow customizing the Responsive extension click handler

$
0
0

I'd like to see a callback/event triggered when the responsive extension click handler runs.

I have a situation where a link inside the first column (which is where the expand icon is rendered) and I would like to change the behavior so clicking on the anchor does not trigger the expansion.

I'd like to be able to cancel the default click handler if the target is an anchor.

By providing a callback/event handler that's triggered we could cancel the event.


Cell update

$
0
0

Hello,

I am migrating code from DataTables 1.8 to 1.10

Current 1.8 code:

oTable = $('.dataTable').dataTable();

                    //Loop through each checkbox checked and update
                    $(".Active_Checks:checked").each(function() {

                        var iId = $(this).parent().parent().attr("id"); /* Record ID */
                        var indexOfRow = oTable.fnGetPosition( $(this).closest('tr').get(0) );
                        var iStatus = object.value;

                        if (iStatus == "Add_MB") {
                            var iIcon = "<img src='/img/greenCheck.gif' border=0>";
                            oTable.fnUpdate( iIcon, indexOfRow, 2 );
                        }
                        if (iStatus == "Add_BP") {
                            var iIcon = "<img src='/img/Checkpurple.gif' border=0>";
                            oTable.fnUpdate( iIcon, indexOfRow, 3 );
                        }
                        if (iStatus == "Remove_MB") {
                            oTable.fnUpdate( "", indexOfRow, 2 );
                        }
                        if (iStatus == "Remove_BP") {
                            oTable.fnUpdate( "", indexOfRow, 3 );
                        }

                        jQuery.ajax({
                             type: "POST",
                             url: "/Online/docs_actions.lasso",
                             data: "status="+iStatus+"&row_id="+iId,
                             dataType: "html"
                         });
                    });
                    oTable.fnDraw();

I can't find a way to update the cell contents in 1.10. What's the best way to change the code?

Thank you in advance!

Jhonny

Misaligned rows in Fixed columns when scrolling Y

$
0
0

I used datatables fixed columns but on load my rows are not aligned. At first it was a tiny bit misaligned but as I scroll, the row misalignment becomes more and more misaligned.

On load this is what it looks like (note: the first two columns are the fixed columns)
1st photo
then if I scroll vertically at the bottom notice that the rows are not aligned at all
2nd photo

Hi, I Question a Problems (Download selected file on DataTables)

$
0
0

I have added a datatables script on the website. I listed the files added in a folder in the DataTables context. I want to download the files in the list, but I could not place the script somewhere

AJAX Remove, no reload

$
0
0

Hi,

I am trying to execute some longer processes server-side on a row removal, and am wondering how I can prevent datatables from reloading the page after I submit a delete event. I tried, e.preventDefault() in the success parameter to the overriden ajax for the editor removal option, but that stopped anything from happening.

How would someone stop the page reload on only a single AJAX override event in Editors?

Thanks!
Chris

Row reordering after sorting

$
0
0

Hello :smile: ,

I have a problem with reordering rows after sorting. I've read everything I could find on the web, but it doesn't seem to help me a bit or the solutions are hacks in most of the times for one of the older releases of DataTables.

So, the question is, how can I freely reorder rows after the table had been sorted? I guess it is not possible out of the box, while DataTables refuses to reorder the rows because it violates the column ordering. How can I override it and allow users to change the row order without sort column having impact on that behavior until the column is resorted again?

My table has no initial data - I'm adding it later after having called ajax request and using API method table.row().add(). The first column is a sequence column - I'm filling it with subsequent integer values. My initialization of rowReorder is presented below:

        "rowReorder": {
            dataSrc: 'sequence',
        },

And how I'm adding new rows:

    let count = 1;

    data.forEach(function (i) {
        table.row.add({
            "sequence": i.id,
            "#": count,
            "name": i.names.pl,
        }).node().id = i.id;
        count++;
    });

The second column should display just the number of row always starting from 1, I didn't use it as a sequence column to not to interfere with DataTables in any way regarding row reording.

Thanks in advance for any help in this matter.

And by the way DataTables is great thank you very much for it :smile:

Trying to return multiple rows into one cell returns blank.

$
0
0

Hi!
I have a one to many relationship in my database and I want to return all rows into the same cell (I hope that makes sense).

I was trying to use this:
{data: null, render: "cdi_comment.commenttext[, ]"} but it just returns a blank row set. I know the Controller is pushing back data because if I do this {data: null, render: "cdi_comment.commenttext"}
I get one record per row and it does return all data.
Any suggestions?

Thanks!

Iterate an API list and populate it in table

$
0
0

Greeting, I'm having trouble populating datatable data that coming from a API in a form of a list, when I populate it in my table, all the data are populated in 1 single row, can anyone help me with this, thanks

below is my code :

API :

[
    {
        "id": 9,
        "project_name": "Project A",
        "user": [
            "Person A",
            "Person B",
            "Person C",
        ]
    }
]

Javascript :

var artist_table = $('#artist-datatable').dataTable({
                    dom: 'Blrtip',
                    JQueryUI: true,
                    sScrollY: "350px",
                    responsive: false,
                    select: true,
                    ajax: {
                        url: "/api/scheduler/crew-list/" + project_id + "/?format=json",
                        dataSrc: ''
                    },
                    columns: [
                    {"data": "user", "class": "user_id"},

                ]
                })

Keyless in standalone editor

$
0
0

This is not a bug per se, but an observation I hope to get some feedback on. I'm using the editor in standalone mode for a details page and I'm not using any of the provided server-side libraries as I'm using ASP.NET Core.

I've read pretty much all the online documentation including standalone. The issue I have is when I invoke the editor using edit with no parameters, the data gets sent with the key as "keyless". To workaround this I modified the data to substitute the correct key.

ajax: {
    url: "/api/Save",
    type: "POST",
    contentType: "application/json",
    data: function (d) {
        d.data[id] = d.data['keyless'];
        delete d.data['keyless'];
        return JSON.stringify(d);
    }
}

Now I understand I need to use data-editor-id attribute as specified in this post and specify the key parameter in edit. That however seems geared towards collections and not necessarily for a single record.

I had a couple of ideas how this could work. Firstly the key could be proved in the idSrc option if table option is not provided. The edit function could lookup fields using data-editor-field selector as they would be singleton.

Secondly the key could be provided as the parameter in edit. This is what I initially assumed would work, but without the data-editor-id attribute it doesn't work. The data-editor-field attributes aren't loaded into the editor dialog which I assume is due to missing container. There is an inconsistency however that when the form is submitted the values do then get saved back to the elements which was unexpected.

I guess this could be seen as a solution in search of problem, i.e. you could use data-editor-id and a parameter in edit but that seems collection orientated - I don't see why a container is required for a single item edit where fields could be in separate areas of a page. Anyway I thought the feedback might be useful and maybe the documentation needs to be a little clearer for this particular instance which I would assume is a pretty common scenario.

Copy/Export Issue: I am getting all values from drop down. Need to get only selected value

$
0
0

I am having drop down list in each row in table. My issue is while doing Copy/Export the table gets all values from Drop down list. I need to get only selected value from drop down.
Thank you.

Datatables Editor: load form data depending on selected value from drop-down

$
0
0

In my form I would have drop-down with options, e.,g., v1, v2, v3 When particular option is selected (e.g., v1), I would need to reload values in my form. Basically, we are talking about versions of data, which on drop-down select are loaded for user to edit. All form fields stay - no changes.

How do I implement this, please? So far I've been looking at dependent() functionality. I'd be happy for any hint, where should I be looking at. Thank you!

China Automatic Foaming Soap Dispenser factory

$
0
0

Automatic hand soap dispenser support you to customized color and pattern
Description
·Built-in check valve to prevent leakage
·Wall mounted panel, need not screwdriver, install easily
·Removable and no sticky nozzle easy to clean and change
·ABS painted shell, durable, lightweight and multi-color to choose
·850ml larger capacity. More than 1000 times use per full pouring
·Use 4 pieces 6V AA batteries, fully use 2500 times for per change
FAQ
1. Q: Can your factory print our brand on the product?
A: Yes, Our factory can laser print customer’s logo on the product with the permission from customers. .

  1. Q: Does your factory have the design and development capabilities, we need the customized products?
    A: Sure, The staffs in our R&D department are well experienced in the faucet industry, with more than 5 to 10 years’ experience.

  2. Q: How long is the delivery time?
    A: For sample order or if there are enough goods in stock, normally it is within 7 days after receiving payment. For bulk order, it takes 15-30 days depending on the order quantity.

  3. Q: What is the terms of payment?
    A: T/T 30% deposit and balance 70% against the copy of B/L. Or L/C at sight China Automatic Foaming Soap Dispenser factory
    website:http://www.aike-handdryer.com/soap-dispenser/automatic-foaming-soap-dispenser/

Color Painted Aluminum Coil factory

$
0
0

Founded in 2008, Zhejiang Hanlv Aluminum Industry Co., Ltd. is an integrated enterprise which specializes in aluminum products manufacturing & processing, international sales & domestic sales. As a modernized enterprise with high technology and self-management export, we are of solid financial base and great capability for production, research and development. To provide customers with one-stop service from the material to the finished product.
Through the years, we got the certificate of ISO9001:2015,and built up many morden production lines, including one 1+2 hot rolling production line, six 2450mm, 2050mm, 1650mm, 1450mm cold rolling lines, two 1650mm foil rolling production lines, two 1850mm continuous rolling production lines and one roll coating production line. Besides, we bring in 8x20 annealing furnaces, tension leveled machine, tension pre-stretch machine, cutting machine, brushed equipment, CNC equipment, clean equipment, testing machine and packing equipment from domestic and abroad.
Advanced equipment and strict management both contribute to the excellent quality of products. Our main products are all kinds of cold rolling and hot rolling aluminum sheet, coil, checkered plate, embossed plate, aluminum disc, aluminum profile, painted aluminum sheet and coil. As well as downstream processing products, such as aluminum brushed sheet, aluminum punching plate, stamping parts, blank sheet, aluminum door, aluminum fence, etc. Our products are sold to all over the world, including South America, North America, Europe, Middle-East, South-East Asia, Africa etc and used in various fields such as construction, decoration, automobile, electronic, machinery, boat construction, aeronautics&astronautics, cookware, packing etc.
Adhering to the principle of " Surviving with quality and developing with credibility", Hanlv hopes to work with all customers for a better future.Color Painted Aluminum Coil factory
website:http://www.aluminumhl.com/

China Good Quality Bonell Spring For Mattress suppliers

$
0
0

Founded in 2005, AH has been specializing in design, manufacture and sell of mattress. From selected material to authoritative certificates, from skilled workers to advanced equipment, from professional sales to quality services, we are committed to providing every customer with the most satisfied products and services, also a new superior sleep experience for final users.
AH is located in Dalian, China, 25km from Dalian Port, here has developed shipping, convenient transportation network and the best air conditions for mattress.
Besides, our one-stop services including pre-sale, on-sale and after-sale guarantee customers the maximize satisfaction and benefits.
AH has family culture, just like our logo, thanksgiving and altruism are our team tenets. We’d love to transfer AH positive energy to everyone.
If you are interested in our products, we believe that we will offer our professionalism and sincerity, to achieve win-win cooperation.
China Good Quality Bonell Spring For Mattress suppliers
website:http://www.amorhome.com/
website2:http://www.ahmattress.com/

Servo Frein manufacturers

$
0
0

This is servo frein, without OEM number, we name it AD428, it is single one, the diameter of it is 8”, it is for Volkswagen car, it is for Brazil market, the brake booster quality is good because our factory has skilled employees, advanced testing devices, rich manufacturing experience, they are sold all over the world.Servo Frein manufacturers
website:http://www.aydbrakebooster.com/servo-frein/


China Blind Flange Lockouts suppliers

$
0
0

Guangzhou Beian Lock Technology Co.,Ltd, established in 2011,is a professional supplier for safety equipment,including safety padlocks,lockout hasps,valves lockouts,cable lockouts & Lockout station,ect. We commit to advocate the safety conception of “Preventative safety first,locked-out safety second”.
We pay strongly attention to the Research and development, which will help us keep in steps with Safety Lockout Tagout Market .We work with our partner to fully understand their requirements and provides the best solution to meet their needs.
We ensure the product quality in order to supply reliable safety protection for all customers and create a professional,standard and safe working environment for all staff member.
Our Product: Safety Lockout Tagout devices.
Product Application: Industry. Oil,gas, electricity and nuclear energy fields. Plants.
Our Certificate: CE,ISO9001,ROHS.China Blind Flange Lockouts suppliers
website:http://www.beianlock.com/
website2:http://www.beianlocks.com/

cheap PCD Hex Driver Bit

$
0
0

PCD dust hogs bit 9
We manufacture high quality dry drilling PCD dust hogs bit since 2010,the bit has good performance in hard rock F10-14.
1.Product Introduction of PCD dust hogs bit
PCD dust hogs bit is made with PDC cutters which have high wear resistance and impact resistance,will have longer drilling life and fast drilling speed,suitable for rock formation F 10-14, such as sandstone,limestone,marble,granite,etc.
2.Product Specification of PCD dust hogs bit
Diameter(mm)PDC cutterWingsThread Shank SizeDrilling ways
25.4mmRound 13mm2HexDry drilling
27mmHalf round 19mm2HexDry drilling
3.Production Feature and Application of PCD dust hogs bit
Longer life,fast drilling speed and best price
Widely used for coal mining,rock formation F10-14
4.Production details of PCD dust hogs bit

5.Deliver,shipping and serve of PCD dust hogs bit

6.FAQ
Q: Are you trading company or manufacturer ?
A: We are factory.
Q: How long is your delivery time?
A: Generally it is 5-10 days if the goods are in stock. or it is 15-20 days if the goods are not in stock, it is according to quantity.
Q:What is your sample policy?
A: We can supply the sample if we have ready parts in stock, but the customers have to pay the sample cost and the courier cost.
Q: What is your terms of payment ?
A: Payment<=1000USD, 100% in advance. Payment>=1000USD, 30% T/T in advance ,balance before shippment.
If you have another question, pls feel free to contact us freely.
7.Latest News
8.Recommendationscheap PCD Hex Driver Bit
website:http://www.besharpdiamond.com/pcd-drill-bit/pcd-hex-driver-bit/

Dental Equipment Dental Unit factory

$
0
0

Our History
The Best Dent brand is engaged in researching , development, production and marketing of dental equipments, including portable dental units , silent oiless dental air compressor , dental units , dental suction systems and autoclaves /sterilizers etc.
The dental equipment awards the ISO 13485 ,CE certificate . Best Dent team will provide you with marketing materials , logistics as well as with technical and commercial training . Our team strives to provide top-notch service to meet your requirement.
We have a team of experienced R&D engineers and skilled staffs, so we are able to supply you the products in high quality at competitive price and on time delivery .
We are sincerely hope all customers in the world to be our partners.
Our Product
Portable dental unit , Silent oiless air compressor , Suction unit , Dental unit
Product Application
Suitable for home service, external examination, beauty salon, hospital reserve, animal hospital, etc...
Our Certificate
CE, ISO 13485
Production Market
Selling the products all over the world and have 98% good feedback from the customers
Our service
1. 1 year quality warranty for all dental equipments.
2. Full way services and technical support offered by our professional engineers.
3. Your goods could be shipped as your requirement such as by air or by sea or you can also arrange your own shipping agent for shipment
Dental Equipment Dental Unit factory
website:http://www.bestdentalunit.com/

UL ST suppliers

$
0
0

Biadicable is a high-tech company established in 2005, specializing in the researching, manufacturing of an extensive range of cables such as network cable, coaxial cable, CCTV Siamese cable, alarm cable, control cable, automotive cable, UL wires etc. The headquarter is based in Shenzhen city, our production plant covers 20000 square meters. We have passed the ISO9001 and TS16949 system.
A comprehensive product design and development capability, supported by detailed laboratory analysis and product testing, technical skills, high levels of product quality, reasonable price and the customer‘s support make Biadicable in a leading position in the market such as North America, South America, Europe, Russia, Africa and United Arab Emirates. All cables supplied comply with all relevant national & international standards and type approvals including British cable, IEC cable, UL.
Our code of Ethics guides our employees to be mindful of our commitments to each other, our customers, business partners and community. Our sales and technical team are focused on the details of every transaction, ensuring that every aspect is correct and offer expert advices.
Our vision is to be one of the best performing wire and cable companies in the industry. Relentlessly focus on the customer and innovate in the Utility, Communications, Industrial, Construction and automotive markets.
Please contact us at sales@biadicable.com to find out how we can assist you.
Join us and be partners.UL ST suppliers
website:http://www.biadi-cable.com/

Auto Exhaust Muffler Seal Ring factory

$
0
0

Motorcycle Exhaust muffler Seal Ring
CODE:BOTE-MEMS

Description:
BOTE Motorcycle Exhaust muffler Seal Ring are made from expanded graphite reinforced with stainless steel foil, mesh or other materials.

Depend on its excellent compression resilience and high working temperature, It is widely used in Motorcycle Exhaust system.

We have supplied to over 10 Chinese automotive manufacturers, like FAW ,Tianjin Toyota, SWGM, Soueast Motor ,Brilliance-Auto, JAC, Great Wall ,Changhe-Suzuki, Geely ,Chery ,BYD etc. and We have many steady customers from all over the world.

Our production capacity 250,000 pcs per month.

APPLICATION:
It is the first choice Exhaust Muffler Gasket for Motorcycle Exhaust system..

ADVANTAGES:
High working temperature and pressure.
Available temperature:-240°C-650°C.
Good sealing performance muffler gasket.

DIMENSIONS:
We have hundreds of different sizes of tooling to meet the needs of most customers.
Can be ordered according to the detailed drawing

Materials:
Expanded Graphite : Industrial grade, Nuclear grade
Reinforced material :SS201,SS202,SS304,SS316, Cold Rolled Steel ,Other special materials as your request.Auto Exhaust Muffler Seal Ring factory
website:http://www.botegasket.com/auto-exhaust-muffler-seal-ring/

Viewing all 81691 articles
Browse latest View live


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