Defining columns by name instead of position? (aka aoColumnDefs for makeEditable)

Defining columns by name instead of position? (aka aoColumnDefs for makeEditable)

arnimarnim Posts: 5Questions: 0Answers: 0
edited October 2011 in Plug-ins
Hello,

is there a way with makeEditable to define columns by their name like in aoColumnDefs& aTargets instead of their position like it's done in aoColumns ? i tried it with no success and could'n t find any example on the web.

for performance reasons i want to show a table with different numbers of columns (basic view, extended view) and with aoColumns i would have to define every columns twice and touch it twice if something changes.

regards
arnim

Replies

  • allanallan Posts: 63,683Questions: 1Answers: 10,498 Site admin
    I'm not aware of a way of doing this yet. In the next revision of DataTables I plan to expose the internal functions that DataTables uses for aoColumnDefs to plug-in authors so that this kind of thing will be trivial to do.

    Allan
  • arnimarnim Posts: 5Questions: 0Answers: 0
    That won't make it for this project but good to hear, that it's in the pipeline, thanks.
This discussion has been closed.