Forum

July 12th, 2025
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
when the page loads throw error as "jQuery("#list").jqGrid is not a function"
16/04/2009
00:59
Avatar
paresh
Member
Members
Forum Posts: 5
Member Since:
16/04/2009
sp_UserOfflineSmall Offline

Hi,

 I  am working on Asp.net MVC application in which i am trying to  use

jqGrid 3.4.2 - jQuery Grid



 to display the data but  after adding the code as shown below it is throwing the error as "jQuery("#list").jqGrid is not a function http://localhost/starfix/Logbook Line 116" when the  page loads

<



asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">

<link rel="stylesheet" type="text/css" href="<%=Url.Content("~/Content/webui/Scripts/themes/coffee/grid.css")%>" title="coffee" media="screen" />

<script src="<%=Url.Content("~/Content/webui/Scripts/jquery-1.3.2.js")%>" type="text/javascript"></script>

<script src="<%=Url.Content("~/Content/webui/Scripts/jquery.jqGrid.js")%>" type="text/javascript"></script>

<script src="<%=Url.Content("~/Content/webui/Scripts/js/jqModal.js")%>" type="text/javascript"></script>

<script src="<%=Url.Content("~/Content/webui/Scripts/js/jqDnR.js")%>" type="text/javascript"></script>

<script type="text/javascript">

jQuery(document).ready(

function() {

jQuery(

"#list").jqGrid({

url:

'/Logbook/GridData/',

datatype:

'json',

mtype:

'GET',

colNames: [

'Id', 'Votes', 'Title'],

colModel: [

{ name:

'Id', index: 'Id', width: 40, align: 'left' },

{ name:

'Votes', index: 'Votes', width: 40, align: 'left' },

{ name:

'Title', index: 'Title', width: 400, align: 'left'}

],

pager: jQuery(

'#pager'),

rowNum: 10,

rowList: [5, 10, 20, 50],

sortname:

'Id',

sortorder:

"desc",

viewrecords:

true,

imgpath:

'/scripts/themes/coffee/images',

caption:

'My first grid'});

});

</script>

</



asp:Content>

<asp:Content ContentPlaceHolderID="body" runat="server">

<

h2>My Grid Data</h2>

<



table id="list" class="scroll" cellpadding="0" cellspacing="0"></table>

<



div id="pager" class="scroll" style="text-align:center;"></div>

</asp:Content>

i am quite  new to  jquery hence not able to  find the reason for this error. Can anybody pls help me in this ?  

  



  

16/04/2009
02:16
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Serch this form for this error. Mostly this is caused that the needed js files are not loaded. You will need to ajust the path in the loader. See docs.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

16/04/2009
03:17
Avatar
paresh
Member
Members
Forum Posts: 5
Member Since:
16/04/2009
sp_UserOfflineSmall Offline

tony said:

Hello,

Serch this form for this error. Mostly this is caused that the needed js files are not loaded. You will need to ajust the path in the loader. See docs.

Regards

Tony


Hi Tony,

  Thanks for the reply but i have verified this things earlier  .

16/04/2009
05:15
Avatar
paresh
Member
Members
Forum Posts: 5
Member Since:
16/04/2009
sp_UserOfflineSmall Offline

paresh said:

tony said:

Hello,

Serch this form for this error. Mostly this is caused that the needed js files are not loaded. You will need to ajust the path in the loader. See docs.

Regards

Tony


Hi Tony,

  Thanks for the reply but i have verified this things earlier  .


            But still it is not working 

20/04/2009
05:42
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

In most cases the error "jQuery(”#list”).jqGrid is not a function"

means that the needed JS files are not loaded or you use a version of jqGrid that is not compatible with jquery 1.3.x

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

03/05/2009
01:30
Avatar
pareshB
New Member
Members
Forum Posts: 1
Member Since:
03/05/2009
sp_UserOfflineSmall Offline

Hi Tony,

  I am the same user .I am still facing the same error.Can it be because  i have set all the jquery script files Build Action to Embedded Resource? 

06/05/2009
14:02
Avatar
gjj391
Member
Members
Forum Posts: 3
Member Since:
05/05/2009
sp_UserOfflineSmall Offline

Try editing jquery.jqgrid.js. Sometimes you need to change the path that  says something like:

var pathtojsfiles = "/path/to/jqGrid/js/folder"; // need to be ajusted

This needs to point the the js folder that comes bundled with jqGrid.

24/08/2010
02:53
Avatar
bgillis
USA
Member
Members
Forum Posts: 12
Member Since:
13/08/2010
sp_UserOfflineSmall Offline

I get the same error and - 100.0% - ALL the .js files are loaded.

24/08/2010
04:17
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

You should include i18n/grid.locale-en.js before laoding jquery.jqGrid.min.js. See /jqgridwiki/doku.php?id=wiki:first_grid#html_file

You should of cause download from http://www.trirand.com/blog/?page_id=6 and use current version of jqGrid.

25/08/2010
18:02
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

And the last, but not the least, if you use the development version, please open the jqGrid loader and adjust the

pathtojsfiles

variable

http://www.trirand.com/jqgridw.....stallation

Please read it carefully.

If you use some old IE versions please change the following code in jqGridInclude function in the loader

FROM

if(jQuery.browser.safari) 

TO
if(jQuery.browser.safari || jQuery.browser.msie ) 

Kind Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

Currently Online:
53 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