Create checkbox radiobutton etc....

Create checkbox radiobutton etc....

Jason_tsaiJason_tsai Posts: 4Questions: 0Answers: 0
edited August 2010 in General
Hi ,
My English is poor, please forget me...

If i need to create some "" HTML items for all rows to Datables by service-side processing , is that only way parse JSON format strings to "aaData" and return to client side?(of course,the data type is html)

For example, parse my all rows of RecordSet to JSON format and return client side like this...
Is that the only way can do ?
[code]
"aaData":[
[
...
"", "Data1", "Data2", ............
...
]
[/code]
If this is the only way i can do , I think this will make me harder to service-side of coding...
Because, the "" items must has a lot of properties and I have to parse JSON too.

Thanks for help :->

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    fnRender ( http://datatables.net/usage/columns#fnRender ) can also be used to achieve what you are looking for. It will take the string returned from the server, and then 'render' it into a checkbox (or whatever else you want to have it construct) and put it into the table.

    Allan
This discussion has been closed.