Custom row/column rendering

Custom row/column rendering

v0idnullv0idnull Posts: 2Questions: 0Answers: 0
edited February 2014 in General
Hello, I've looked through the documentation, but something is not clear to me.

Let's say I wanted sortable columns, but each row contains a paragraph/snippet of text, title, etc. Something more akin to search results from google or bing. If I were to write this as an HTML table, it would look something like:

[code]


TitleNumber of VisitsDocument Size




Document Title
... some snippet of text, long paragraph, or something that justifies having this text span all columns




[/code]

So the header columns would all be sortable, but the results being displayed are document-centric. Is it possible to create something like this with DataTables and if so, what relevant documentation do I have to read?

thank you

Replies

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    What is your data source? If its already in the HTML like that, then you'll need to use a sorting plug-in to extract the text you want to sort only.

    If it is a JSON data source, then have a look at this article on orthogonal data: http://next.datatables.net/manual/orthogonal-data

    Allan
  • v0idnullv0idnull Posts: 2Questions: 0Answers: 0
    datasource is solr json
This discussion has been closed.