Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - lucafik

Pages: [1]
1
I have a problem that PQGrid is resizable even when its beneath an overlay. In the attachment, you can see a dialog with overlay over whole page. Overlay has fixed position with 100% width and height.

Please take a look at the attachment. I am trying make a text selection inside an input element, which is in a form in an iframe on top of PQGrid, but instead of selecting text, columns of PQGrid start to resize.

I have tried setting resizable to false when dialog opens, but I can still resize the columns.
Code: [Select]
$( "#container_grid_UserDataGrid" ).pqGrid( "option", "resizable", false );
PQGrid version 2.3.0. It would be good if I could stay on that version, because we have already made some fixes and I am afraid they might not work if I upgrade to newer version of PQGrid.

2
I am using pqgrid in combination with jqueryBubblePopup, which does not work with dynamically loaded DOM elements

So every time I do one of the following

1. change the page in the grid
2. change the number of items per page
3. click a refresh grid button

content seems to get reloaded and bubblepopup plugin stops working.

Is there some event I could use to reinitialize the bubblePopup, every time the grid content gets reloaded?


3
No need to approve anything.

Problem was that some custom jquery-ui was imported from another control.

4
Help for ParamQuery Pro / CheckboxColumn
« on: March 30, 2015, 09:26:24 pm »
How can I represent the boolean value from the HTML table in a pqgrid.

I have used
type: 'checkBoxSelection', cb: {all: true, header: false}

and created a pqgrid from an html table
var $grid = $("#tbl_for_grid").pqGrid(newObj);

but all of my rows are marked as checked and selected, like this.
http://pokit.org/get/img/f25ebcc2d0b05c277bdb7efa6369e9cd.jpg

I dont want my rows to be selected, and I need the value to correspond the values in the table.

5
Help for ParamQuery Pro / Text in a cell selectable with a cursor
« on: January 19, 2015, 09:10:20 pm »
Is it possible to configure cell so that its text is selectable with a cursor?

Thank you

6
ParamQuery Pro Evaluation Support / PQ Grid IE8 Problem with Processor load
« on: November 25, 2014, 08:13:03 pm »
So the problem occurs on IE8 and Windows XP.

For some strange reason, always when the grid becomes visible, it takes around 50% of processor capacity, as if some heavy script is looped locally.

You can see it here:
https://www.adjumed.net/Web/Faelle_Responsive.aspx

Login with demo data:

Email: [email protected]
Klinik-nr: 0
Password: demo

When I open the accordeon tab that contains a grid happens this:


When I close it, it gets back to lower value.

I assume it has something to do with the grid.

Any idea?

Thanks
Filip

7
I already have a server function for fetching pages of data. It receives a current page, and number of records per page.

I want to submit current page of the grid to that function. At the moment I am doing pageModel.curPage, but that doesnt change from its initial value.

As a result, when I page through data, I always get the first page.

var pageM = {
            type: 'remote',
            curPage: 1,
            rPP: 30,
            rPPOptions: [5, 30, 50]
        }
var dataM = {
....
getUrl: function () {
                return { url: "JqueryGridHelper.aspx", data: "cur_page=" + pageM.curPage + "&records_per_page=" + pageM.rPP  };
            },
}

8
ParamQuery Pro Evaluation Support / totalPages for remote pageModel
« on: November 05, 2014, 05:07:44 pm »
I have a problem with setting totalPages. In free version, totalPages was set automatically, but now its not.

I already have a helper .NET method that worked for free version, and I use it with getUrl, so since I switched to PRO I dont want to change it, I want to keep using the same method (without parameters, gets them from querystring).

I have read this example
http://paramquery.com/pro/demos/paging

I dont understand how is totalPages set. I read that for remote you need to set it manually, but in this example it is not set.

Here is relevant part of my code

var pageM = {
            type: 'remote',
            curPage: 1,
            totalPages: 3,
            rPP: 30,
            rPPOptions: [5, 30, 50]
        }   
        var dataM = {
            location: "remote",
            sorting: "remote",
            dataType: "JSON",
            method: "POST",
            sortIndx: 0,
            sortDir: "up",
            getUrl: function () {
               
            },
            getData: function (dataJSON, textStatus, jqXHR) {
                $("#patients_loader").hide();
                $(".container_patientlist").show();

                if (dataJSON != null)
                {
                    return { curPage: dataJSON.curPage, totalRecords: dataJSON.totalRecords, data: dataJSON.data };
                }         
            }
        }

 var $gridPatients = $("#grid_patientlist").pqGrid({ width: "auto", height: 700,
            dataModel: dataM,
            pageModel: pageM,
            colModel: colM,
            resizable: false, 
            showTop: false,
            showBottom: true,
            flexHeight: true,
            editable:false,
            columnTemplate : { width: '10%' },
            selectionModel: { type: 'none' }  ,
            scrollModel: {autoFit: true}   
        });



Pages: [1]