Saturday, June 19, 2010

django - Datagrid

Hi

Is there anybody who has implemented jqqrid 3.7 with json and made it
work?.

I keep getting an error from FF

Error: uncaught exception: jqGrid - No such method: navGrid


<script src="http://127.0.0.1:8000/static/jquery/js/
jquery-1.4.2.min.js
"></src </script>
<script src="http://127.0.0.1:8000/static/jquery/js/jquery-
ui-1.8.2.custom.min.js
"></src </script>
<link rel="stylesheet" type="text/css" media="screen" href="http://
127.0.0.1:8000/static/jquery/css/dark-hive/jquery-
ui-1.8.2.custom.css
" />
<link rel="stylesheet" type="text/css" media="screen" href="http://
127.0.0.1:8000/static/jqgrid/css/ui.jqgrid.css" />
<script src="http://127.0.0.1:8000/static/jqgrid/js/i18n/grid.locale-
en.js
" type="text/javascript"></script>
<script src="http://127.0.0.1:8000/static/jqgrid/js/
jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="http://127.0.0.1:8000/static/jqgrid/src/grid.jqueryui.js"
type="text/javascript"></script>
<script src="http://127.0.0.1:8000/static/jqgrid/src/
ui.multiselect.js" type="text/javascript"></script>


js looks like this:

jQuery("#list2").jqGrid({ url:'/xhr_test', dataType: "json",

colNames:['Country Name', 'Country Code',
'Nationality Code','Added Date'],
colModel:[

{name:'countryname',index:'countryref', width:90},

{name:'countrycode',index:'countrycode', width:100},

{name:'nationalitycode',index:'nationalitycode', width:80,
align:"right"},

{name:'added_date',index:'added_date', width:80, align:"right"} ],
rowNum:10, rowList:[10,20,30], pager: '#pager2', sortname: 'id',
viewrecords: true, sortorder: "desc", caption:"JSON Example" });

jQuery("#list2").jqGrid('navGrid','#pager2',
{edit:false,add:false,del:false});

Regards

Bjørn

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate