How to make even rows non-editable in DataTable while using makeditble plugin

How to make even rows non-editable in DataTable while using makeditble plugin

kinpinkinpin Posts: 1Questions: 0Answers: 0
edited March 2013 in General
Hi ..I am new to Jquery , my requirement is to make only odd number rows editable in DataTable using makeditble plugin . I have browsed few forums but not able to get proper implementation.. Can some one please help me out here to find the solution below is my jquery code snippet which works fine to edit all the rows currently. Thanks in advance...

$(document).ready(function () {
$("#address").dataTable({
"bServerSide": true,
"sAjaxSource": "/home/DataServlet",
"bProcessing": true,
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"aoColumns": [
{ "sName": "ID",
"bSearchable": false,
"bSortable": false,
"bVisible": false
},
{ "sName": "NAME" },
{ "sName": "CITY" },
{ "sName": "COUNTRY" }
]
}).makeEditable({

"aoColumns": [
{
indicator: 'Updating...',
tooltip: 'Click to edit name',
loadtext: 'loading...',
type: 'text',
onblur: 'submit'

},
{
indicator: 'Updating..',
tooltip: 'Click to edit city',
loadtext: 'loading...',
type: 'text',
onblur: 'submit'

},
{
indicator: 'Updateing...',
tooltip: 'Click to edit country',
loadtext: 'loading...',
type: 'text',
onblur: 'submit'

}
]
});
});
This discussion has been closed.