A Curious Animal
Bla, bla, bla, ..., (evolution) , ..., blog, blog, blog, ...
Bla, bla, bla, ..., (evolution) , ..., blog, blog, blog, ...
Fri, 14 May, 2010
Flexigrid is one of the most usefull and powerfull grid plugins for jQuery. Unfoirtunatelly, as ahotur explain in the project page, there is no much documentation so you must learn how to use it looking at existing code.
If anytime you need to fill a flexigrid with JSON or XML content and you are a little buggy to look at example code, here is the summary of history:
Sample data for both types are:
{
page: 1,
total: 2,
rows: [
{id: 'reg1', cell: ['reg1-cell1','reg1-cell2']},
{id: 'reg2', cell: ['reg2-cell1','reg2-cell2']}
]
}
Finally, to use your XML/JSON data to create a flexigrid component you need to:
<p id="yourId"></p>
$("#yourId").flexigrid({
url: 'your_file_name.json_or_xml',
dataType: 'json',
...
}
Now you know how to build a flashy flexigrid.
Thank you!
Post new comment