Table where each database row is a column / editable/jEditable

Table where each database row is a column / editable/jEditable

maralcmaralc Posts: 1Questions: 0Answers: 0
edited December 2011 in General
Hi

I want to render a datatable where each database row is a column. I searched around and couldn't find anything like that. Maybe I am using the wrong keyword?

I can generate a dom with the table in the format I want, the problem comes when I try to use anything over that. For example I want to use editable/jeditable and then the id of the record goes to the tr, what wouldn't work in this case as each like is not a database records.

Thanks for any comments/thoughts.

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Most aspects of DataTables assume rows down the vertical axis, whereas it sounds like you have them going along the horizontal axis. This isn't a problem for DataTables core, as long as you generate the table as you need (as indeed, you say you have done!), but plug-ins such as the editable one often assume the rows down the vertical as well. As such you would need to customise that plug-in to provide the ability you need or write your own wrapper code.

    Allan
This discussion has been closed.