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.


Messages - orlando_acevedo

Pages: [1] 2
1
Hi pqTeam,

I recently upgraded to v5.6, and the sorting is not working anymore in an Infinite Scrolling scenario.

Here is the grid code:
Code: [Select]

        var obj = {
            sortModel: { type: 'remote', sorter: [{ dataIndx: 'AuditID', dir: 'down' }] },
            numberCell: { show: false },
            filterModel: { on: true, header: true, type: 'remote' },
            showTop: false,
            menuIcon: true,
            menuUI: {
                tabs: ['filter']
            },
            height: 500,
            flex: { one: true },
            wrap: false,
            freezeCols: 1,
            editable: false,
            collapsible: false,
            resizable: true,
            // Callback Functions:
            beforeSort: function (evt) {
                if (evt.originalEvent) {//only if sorting done through header cell click.
                    pqIS.init();
                }
            },
            beforeFilter: function () {
                pqIS.init();
            },
            beforeTableView: function (evt, ui) {
                var finalV = ui.finalV,
                    data = pqIS.data;
                if (ui.initV == null) {
                    return;
                }
                if (!pqIS.pending && finalV >= data.length - 1 && data.length < pqIS.totalRecords) {
                    pqIS.requestPage++;
                    pqIS.pending = true;
                    //request more rows.
                    this.refreshDataAndView();
                }
            }
        };

        obj.colModel = [
            {
                title: "Audit ID", dataIndx: "AuditID", minWidth: "90", dataType: 'integer',
                render: function (ui) { return { style: "text-decoration: underline;", text: "<a href='/Audits/Details/" + ui.cellData + "'>" + ui.cellData + "</a>" } },
                filter: { crules: [{ condition: 'equal' }], listener: 'change' }
            },
            {
            .....

And the dataModel:

Code: [Select]
obj.dataModel = {
            dataType: "JSON",
            location: "remote",
            url: '@Url.Action("AuditInfiniteData", "Audits")',
            postData: function () {
                return {
                    pq_curpage: pqIS.requestPage,
                    pq_rpp: pqIS.rpp,
                };
            },
            getData: function (response) {
                var data = response.data,
                    len = data.length,
                    curPage = response.curPage,
                    pq_data = pqIS.data,
                    init = (curPage - 1) * pqIS.rpp;
                pqIS.pending = false;
                pqIS.totalRecords = response.totalRecords;
                for (var i = 0; i < len; i++) {
                    pq_data[i + init] = data[i];
                }
                return { data: pq_data }
            }
            //,
            //error: function (jqXHR, textStatus, errorThrown) {
            //    //alert("There has been an error.\nPlease contact Orlando Acevedo at [email protected].\nERROR: " + errorThrown);
            //    alert("There has been an error.\nPlease contact Orlando Acevedo at [email protected].\nERROR: " + errorThrown);
            //}
        };

2
When any value is entered in any of the textboxes, no matter if the other textbox already has a date, it changes to gte.
The only way to make it work is to open the filter menu and enter the dates there.

3
Hello pqTeam,

After upgrading an "Infinite scrolling" grid to v5.6, the "between" filter on a date column is not working anymore if using the header filter textboxes.
The problem is that when entering the "to" date on the filter's right textbox, the filter changes to a "gte" condition using that date.

It appears to be working fine for non "Infinite scrolling" grids.

The filtering works if I use the filter menu instead of the textboxes.

Thank you,

OA.

4
I updated the filters to use crules and that fixed it.

Thank you,

OA.

5
Help for ParamQuery Pro / Re: filter options from database
« on: December 06, 2018, 10:49:06 pm »
That worked.


Thank you!!!


OA.

6
Help for ParamQuery Pro / Re: Force equal filter to textbox
« on: December 06, 2018, 10:37:45 pm »
That worked.

Thank you very much.

 OA

7
Help for ParamQuery Pro / Re: Force equal filter to textbox
« on: December 05, 2018, 10:43:14 pm »
Thank you for your reply.

I do not want to have the options prefilled. I want to be able to enter the ID in the filter textbox and then use the change listener to pull that single item from the database.

Is it possible to force a textbox instead of a drop-down when the filter condition is "equal"?

Thank you,

OA

8
Help for ParamQuery Pro / filter options from database
« on: December 05, 2018, 12:13:54 pm »
Hi pqTeam,

I have an infinite scrolling grid that I am upgrading to version 5.6. Since the data is loaded incrementally, I need to feed the filter options directly from the database.
The code I found on the forum and documentation is not working though, and when runs, it makes the filter be blank.
Here is what I have:
Code: [Select]

$.getJSON('@Url.Action("AuditFilterOptions", "Audits")', function (data) {

            filterMG = $("#grid_audits").pqGrid("getColumn", { dataIndx: 'ManagementGroup' }).filter;
            filterMG.cache = null;
            filterMG.options = data.ManagementGroups;

            $("#grid_audits").pqGrid("refreshHeader");
        });




Thank you,

OA

9
Help for ParamQuery Pro / Force equal filter to textbox
« on: December 05, 2018, 05:58:18 am »
Hi pqTeam,

I recently upgraded to version 5.6 and ran into a problem with an infinite scrolling grid I created previously.
The ID field is an integer, and I had set the filter condition to 'equal', which makes that column's filter to become a dropdown. I tried to force it to be a textbox by adding the "type: 'textbox'" inside the filter object, but it does not work. The problem is that since this is an incremental load, I cannot use a dropdown because it would be limited to the records already loaded, and when I change the filter condition to anything other than equal, I get an error because 'StartsWith' is not valid for Int32 types.

Thank you,

OA

10
Help for ParamQuery Pro / Nested Columns not displaying checkboxes window
« on: December 04, 2018, 12:55:22 am »
Hello all,

I am trying to use the hide/show columns function but when displayed, the column headers are missing the menu icons so there is no way to see and use the checkboxes to show/hide columns. Not sure if I'm missing a reference? I got the same result in jsfiddle.

http://jsfiddle.net/orlando_acevedo/subk0ypL/1/


Thank you,

OA

11
No, I don't use cookies at all.
It's hard to debug since I'm not having the problem and there is no way to replicate it.

12
I upgraded from v.3.3 to v.5 and since then some users have been experiencing an issue where the grid is not displayed at all.
I discovered that clearing cookies solves the issue in most, but not all, users in Internet Explorer.
Some users are having the same issue in Google Chrome.

Thank you for your help,

OA.

13
Hi. Here is the information:

1. Version 5.1

2. Column.format: "#,###.00"

3. Values are decimal

4. Column.dataType: "float"

Thank you for your help.

Orlando.

14
Date is displaying with the correct format on the screen, but when exporting, the column becomes text and the dates are displayed with format yyyy-mm-ddT00:00:00.00.
Is there something special that needs to be done so that it is exported with the correct format?

Thank you.

15
Help for ParamQuery Pro / Issues with fonts and https
« on: June 19, 2018, 05:04:05 pm »
Hi PQTeam,

I implemented PQ Grid on my site a while ago. The production environment is responding fine using v3, but I implemented version 5.1 and now all of the pages in development using PQ Grid become unresponsive because of a long-running script that I cannot identify.

The site is secure, so not sure if it might be because PQ Grid is loading a lot of stuff using http instead of https?

Thank you for any help.

Orlando.


Pages: [1] 2