how to add a checkbox column to jquery datatable??

how to add a checkbox column to jquery datatable??

Anu1Anu1 Posts: 1Questions: 0Answers: 0
edited January 2014 in General
Hello,

I am creating a jQuery data table. below is the example of data i am passing as aaData and aocolumns ,
ex :
"aaData" : [{"Id":"A111","isChecked":"True"}, {"Id" : "B222" , "isChecked" : "False"}],
"aoColumns": [{ "sTitle": "Id","mDataProp": "Id" },{ "sTitle": "isChecked","mDataProp": "isChecked" }]

how to make the column "isChecked" as checkbox type, where if the value of isChecked is True then it should be checked and if it is false it should be unchecked.
Please help.
Thanks in advance.

Replies

  • TroberTrober Posts: 1Questions: 0Answers: 0
    You have to be kidding this is what it takes to make a column a checkbox?

    How about type: 'checkbox' somewhere?

    Amazing how something so simple is made so convoluted.
  • neerajkneerajk Posts: 1Questions: 0Answers: 0
    edited May 2014

    If you can help then help don't put the bullshits.

  • addice1984addice1984 Posts: 4Questions: 1Answers: 0

    I have a hard time finding this but I hope this link can help:

    http://editor.datatables.net/examples/api/checkbox.html

  • AJ123abcAJ123abc Posts: 1Questions: 0Answers: 0

    The editor plugin is a paid license and NOT under MIT license. Is there an alternative to having this Editor plugin in order to be able to place a checkBox in a cloumn and be able to click on it so the checkBox is toggled on/off?

This discussion has been closed.