Hello,
do you already know how to do it without Django, e.g with a static dataset? Because, from the HTML page's view, you will exactly do that.
I don't know JqGrid, but I assume it needs an array of objects, like
gridData = [
{
firstColumn: 1,
secondColumn: "data"
},
{
firstColumn: 2,
secondColumn:" other data"
}
];
Generate this array from your querysets inside a <script> block, and there you go!
It gets a bit trickier if you want to load it dynamically, like loading the next page of data without reloading the full page, but that's more the problem of AJAX, not Django.
Best,
Gergely
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e7e9b341-f5e3-4010-bb63-78d4bec635ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.