Have a look at
jQuery Templates. I have found these to be great (and easy to use) when working with an JSON/jQuery - also to go one step further wiring it all up with
Knockoutjs gives a lot of nice binding features and keeping everything nicely synced.
nayanancha
Member
158 Points
244 Posts
How to show JSON data in Jquery DataTables using "Ajax source - a server-side file, with JSON for...
Aug 01, 2011 06:12 PM|LINK
Hi....
I have a view in which user will select the dropdown and hits the button to get the data. I need to show this data in Jquery Datatables.
How can i get the data to show it in DataTable. This is my below sample JSON data coming from my request in Controller.
{"Status":true,"ErrorCode":0,"TimeStamp":"\/Date(1311951697070)\/","Messages":["Total 2 user(s) returned."],
"Data":
[
{"UserName":"AAA",
"Email":"aaa@test.com"},
{"UserName":"BBB",
"Email":"bbb@test.com"}]}
Here is my code for Contrioller and View:
stuie
Participant
1483 Points
291 Posts
Re: How to show JSON data in Jquery DataTables using "Ajax source - a server-side file, with JSON...
Aug 01, 2011 08:15 PM|LINK
Hi,
Have a look at jQuery Templates. I have found these to be great (and easy to use) when working with an JSON/jQuery - also to go one step further wiring it all up with Knockoutjs gives a lot of nice binding features and keeping everything nicely synced.
Hope this helps,
Stuart