How to represent data from JSON in GridView ( table )
I have JSON file like this format
{
"Alarms":[
],
"BAE":[
],
"Open":[
],
"Timeout":[
2,3,4,5,6,7,9
],
"End Switches":[
],
"Bus Power":[
],
"External Power":[
1,2,3,4,5,6,7,8
]
}
where Alarms, BAE, Open... are columns . I need to represent like GridView in ASP.NET ( like table with pagination ). How to do that using Dojo ? Is there any 开发者_JAVA技巧widget which automatic represent JSON file in table form ?
You need to do 2 things:
- Put your json data into a data store
- Bind the data store to a grid widget
Since you need pagination, you should use the dojox.grid.Enhanced widget and enable pagination. Dojo does not offer a simple HTML table-from-json widget that also supports pagination.
精彩评论