Simple example that help me to understand how to set a cell editable

Simple example that help me to understand how to set a cell editable

itassetsitassets Posts: 17Questions: 1Answers: 0

I've been reading and testing most of the examples on how to make a row or a column editable posted in this forum. Everyone seems to be working. But so far I haven't been able to get the solution to my problem.
This post helps me http://www.datatables.net/forums/discussion/15153/disable-jeditable-on-a-single-column
but I need specific cells to be editable not columns. So it looks like I need to get a more specific selector in
var editableCellsSelector = 'td:nth-child(2),td:nth-child(3)';
$(editableCellsSelector , oTable.fnGetNodes()).editable( saveValue, {.....

Any suggestion?
PS: Btw where is the editable method sintax explained ? Couldn't find it.

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    The method you have looks like it should probably work, also using class names might be easier. We would need a link to be able to debug it, but I should point out the editable plug-in is third party and not supported here. My understanding is that it is also no longer supported by its author.

    PS: Btw where is the editable method sintax explained ? Couldn't find it.

    Editor is the official Editor for DataTables and its inline option is documented here: inline().

    Allan

This discussion has been closed.