Forum


16:46

18/11/2009

I am trying desperately to get the grid to work but no matter what I'm doing it still will not render correctly on my page. I have an ASP.NET site (I do not want to use the control) and I'm using ver 3.6. I can get the rows to load but I get stuff like “createModal is undefined” and “$.jgrid.formatter is undefined”. The best I've been able to do is get the grid loaded, but there is a modal div over the grid and it will not go away. I've tried everything from the most minimal download to everything and nothing seems to change the errors I'm receiving. I have my theme set up correctly and there are no file references failling to load. What else can I do to get this work right? I've looked all over the web and no one seems to have these problems. I've tried with jq 1.3.1 and 1.3.2 and the result is the same.
Here's my code:
<script type=”text/javascript” src=”/js/ui/jquery.ui.js”></script>
<script type=”text/javascript” src=”/js/ui/jquery.jqGrid.js”></script>
<script type=”text/javascript”>
$(function(){
bindFiles();
});
function bindFiles(){
$(”#tblFiles”).jqGrid({
url:'/processors/default.aspx?fx=gt',
datatype: “json”,
colNames:['Name', 'Type', 'ExpDate','Notes'],
colModel:[ {name:'Name',index:'Name', width:200},
{name:'Type',index:'Type', width:30},
{name:'ExpDate',index:'ExpDate desc', width:80, align:"center"},
{name:'Notes',index:'Notes', width:200}],
rowNum:3,
altRows: true,
rowList:[5,10,20],
pager: jQuery('#filePager'),
sortname: 'ExpDate',
viewrecords: true,
sortorder: “desc”,
caption:”My Files”,
width: 700
});
jQuery('#tblFiles').jqGrid('navGrid','#filePager',{edit:false,add:false,del:false});
}
</script>
<body>
<form id=”form1″ runat=”server”>
<div id=”parent”>
<div id=”mainContainer”>
<div style=”width: 75%; max-width: 900px”>
<table id=”tblFiles”></table>
<div id=”filePager”></div>
</div>
</div>
</div>
</form>
</body>
</html>
20:41

I am not sure, but it reminds me of an earlier post I made:
http://www.trirand.com/blog/?p.....est-commit
I can only guess that *maybe* you are missing some of the js files/components? Would seem like a reasonable theory given the type of errors you are having (i.e. stuff like “createModal is undefined” and “$.jgrid.formatter is undefined”).
I would try getting all of the files again and include all components. Then in firebug make SURE each loaded js file displays content.
I hope that helps.
tim
09:20

10/08/2009

Hi, Shalini
in the jqGrid Documantation http://www.trirand.com/jqgridw.....jqgriddocs there are some articles about installation of jqGrid. If you read http://www.trirand.com/jqgridw.....to_install you will find which css and js files in which order you should include.
Regards
Oleg
02:59

10/08/2009

Hi Shalini,
nobody can helps you to find an error in your code if you don't post your code. The only general way which I can suggest you: load a working example from the internet which most close to you environment and start step by step modify this example to receive at the and you code. After every small step verify that the code still working.
Regards
Oleg
11:06

18/11/2009

Shalini said:
HI Oleg,
i have done this with the instruction given in these links. But this error is still coming… do you have any other idea???
It took a while to get everthing in place. I had to edit my css files to point to the right images directory. If you use Firebug's Net tab, it will show you which files are not found. You need the ui.jqgrid.css file referenced.
Most Users Ever Online: 715
Currently Online:
71 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66