Author Topic: pqgrid not loading v2.2.0  (Read 3246 times)

rgorantla

  • Pro Deluxe
  • Jr. Member
  • *
  • Posts: 88
    • View Profile
pqgrid not loading v2.2.0
« on: September 16, 2014, 09:39:06 pm »
Hi,

I have included all files  in my header section : and trying to load pqgrid but receiving an error "undefined is not a function"  (var grid1 = $("div#medicalgrid").pqGrid)

<link rel="stylesheet"         href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/themes/base/jquery-ui.css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
    <link href="~/Content/pqgrid.min.css" rel="stylesheet" />
     <script src="~/Scripts/touch-punch.min.js"></script>
    <script src="~/Scripts/pqgrid.min.js"></script>

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: pqgrid not loading v2.2.0
« Reply #1 on: September 16, 2014, 10:54:04 pm »
This is not the right syntax to initialize pqGrid. (var grid1 = $("div#medicalgrid").pqGrid)

Please read through the tutorial

http://paramquery.com/pro/tutorial#topic-firstgrid

rgorantla

  • Pro Deluxe
  • Jr. Member
  • *
  • Posts: 88
    • View Profile
Re: pqgrid not loading v2.2.0
« Reply #2 on: September 17, 2014, 12:07:29 am »
I tried all different possibilities , but still receiving the same error
 var grid1 = $("div#medicalgrid").pqGrid({

rgorantla

  • Pro Deluxe
  • Jr. Member
  • *
  • Posts: 88
    • View Profile
Re: pqgrid not loading v2.2.0
« Reply #3 on: September 17, 2014, 05:23:11 am »
I got this working