Author Topic: Upgrading to Pro  (Read 2508 times)

lgauton

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 44
    • View Profile
Upgrading to Pro
« on: March 12, 2014, 07:10:07 pm »
Hi Just purchased Pro version and I'm moving a grid to it, Previously grid displayed correctly in Chrome/Firefox
I'm now seeing an extra tool area just underneath the title area - which doesn't work correctly, it resizes on hoverover, and also in the tool item is click grid disappears with the tool area and there is no-method of getting the grid to display again. Additionally hover over the rows of the grid causes slight redrawing of rows. - hers the scripts and css being used, pulled straight from migrate to pro, image of how grid looks attached. Can this tool area be hidden completely or am I missing something

    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/themes/base/jquery-ui.css" />
    <link type="text/css" rel="stylesheet" href="@Url.FrontUrl().FileUrl("pqgrid.min.css")" />
    <link type="text/css" rel="stylesheet" href="@Url.FrontUrl().FileUrl("pqgrid.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>

    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.simplemodal-1.4.4.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/pqgrid.min.js")"></script>

here's the grid definition

var colModel = [
            { title: "Code", dataType: "string", width: "50", dataIndx: 0 },
            { title: "Name", dataType: "string", width: 250, dataIndx: 1 },
            { title: "Resort Name", width: 250, dataIndx: 4 },
            { title: "Country", dataType: "string", width: 100, dataIndx: 6 }
            ];

            var dataModel = {
                cache: true,
                location: "remote",
                sortDir: "up",
                sorting: "local",
                dataType: "xml",
                getUrl: function () {
                    return { url: "@Url.ModuleUrl().Action("AccessHotelList")" };
                },
                getData: function (dataDoc) {
                    //debugger;
                    var obj = { itemParent: "BriefAccommodationInfo", itemNames: ["code", "name", "inactive", "resortCode", "resortName", "countryCode", "countryName"] };
                    return { data: $.paramquery.xmlToArray(dataDoc, obj) };
                }
            };

            var obj = {
                width: 700, height: 0,
                dataModel: dataModel,
                colModel: colModel,
                pageModel: { rPP: 10, type: "local", rPPOptions: [1, 2, 5, 10, 20, 100] },
                title: "<b>Hotel List</b>",
                flexHeight: true,
                paging: true,
                draggable: true,
                editable: false,
                //resizable:true,           
                scrollModel: { horizontal: false },
                freezeCols: 0,
                rowSelect: loadHotel
            };

            var $grid = $("#HotelGrid").pqGrid(obj);


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Upgrading to Pro
« Reply #1 on: March 12, 2014, 09:33:09 pm »
collapsible icon is supposed to be in right top corner. It can be hidden with option collapsible: false.

Have you upgraded css files of PRO. from the screenshot it looks like you are still carrying over the styles ( css files ) from basic version.