Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Bugs. bugs and more bugs HELP!!!!
17/11/2009
16:46
Avatar
corb
Member
Members
Forum Posts: 5
Member Since:
18/11/2009
sp_UserOfflineSmall Offline

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>

Image Enlarger

17/11/2009
20:41
Avatar
tim
Guest
Guests

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

18/11/2009
09:56
Avatar
corb
Member
Members
Forum Posts: 5
Member Since:
18/11/2009
sp_UserOfflineSmall Offline

I guess I was a victim of looking at the same problem too longEmbarassed. I put in a mising css file and moved the language js above my jqgrid script and, like magic, it worked flawlessly. Thanks for the response.

20/11/2009
08:27
Avatar
Shalini
Guest
Guests

HI,

my same problem is not yet solved. which css file you had added. as i  am getting the $.jgrid.formatter bug in jquery.jqGrid.min.js file.ConfusedCry

Thanks in advance...

20/11/2009
09:20
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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

22/11/2009
23:52
Avatar
Shalini
Guest
Guests

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???Cry

23/11/2009
02:59
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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

23/11/2009
04:30
Avatar
phicarre
Member
Members
Forum Posts: 132
Member Since:
09/11/2009
sp_UserOfflineSmall Offline

Did you generate correctly your package before downloading ?

24/11/2009
11:06
Avatar
corb
Member
Members
Forum Posts: 5
Member Since:
18/11/2009
sp_UserOfflineSmall Offline

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???Cry


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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information