adding an unordered list to a table cell

adding an unordered list to a table cell

KimSchroederKimSchroeder Posts: 6Questions: 0Answers: 0
edited February 2012 in General
I've found a prebuilt table containing TD's with UL's is fairly straight forward. However, I'm planning to use a json data source. Does any one have an example of this or can tell me how to do it? The UL would be built from data contained within the currect data row.

Thanks

Replies

  • KimSchroederKimSchroeder Posts: 6Questions: 0Answers: 0
    * I can use templates and create the table in the success function, but i was hoping to keep it simple and leverage the advantage of using DataTables.
  • michandrzmichandrz Posts: 12Questions: 0Answers: 0
    OK so let me get this straight you want the end result to be:
    [code]


    col1



    <!--row1cell1-->

    list Object 1





    [/code]
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Just put the HTML into the string that it returned for that row. DataTables will just treat it as HTML and shove it in the cell :-)

    Allan
  • KimSchroederKimSchroeder Posts: 6Questions: 0Answers: 0
    edited February 2012
    @Allan Thank you for responding. I was afraid of that. I had hoped for a solution or addon that would do that for a cell. I'm new to data tables and i love the product do not think i am saying otherwise. This might be a good idea for a plugin/extention.
    :-) Kim
This discussion has been closed.