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 - hellokert

Pages: [1]
1
ParamQuery Pro Evaluation Support / Checkbox does not work
« on: March 25, 2021, 06:13:42 pm »
Hi,

I am using ParamQuery Pro v4.0.3. Unfortunately, based on the example found, the checkbox in the grid could not work either.

I used this example (https://paramquery.com/pro/demos/checkbox_id):

                { dataIndx: "state", maxWidth: 30, minWidth: 30, align: "center", resizable: false,
                    title: "",
                    menuIcon: false,
                    type: 'checkBoxSelection', cls: 'ui-state-default', sortable: false, editor: false,
                    dataType: 'bool',
                    cb: {
                        all: false, //checkbox selection in the header affect current page only.
                        header: true //show checkbox in header.
                    }
                },

'State' also gets a value.
                                ugyfel.ELO as elo,
                                ARAJANLATBOL as arajanlatbol,
                                false as state,
                                'false' as disabled
                            from ugyfel

The checkbox does not appear in the header and those in the cells are not checked when clicked.

2
Thank you.

3
Could you please help me? How can I fix it to work on every column?

Hy!

Thank you for answer. I'm happy with this solution.

But please help, how to set it to go back and forth.

Thank you!

4
Yes,

on nokia 6 with android 7.1.1 is running well.

But not running on: SAMSUNG Galaxy Tab Android 6.0 Marshmallow


5
Hy,

I'm using touch-punch.min.js, but:

for example this "button" is not working on mobile devices:
<span class="ui-icon ui-icon-refresh"></span>

but this button typed button is working well:
<button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button"><span class="ui-button-text">Szűrők alaphelyzetbe</span></button>

I attached a jpg file.
Please help!

6
Hy!

Thank you for answer. I'm happy with this solution.

But please help, how to set it to go back and forth.

Thank you!

7
Help for ParamQuery Pro / Can the header filters be loaded dynamically?
« on: September 20, 2017, 03:38:57 pm »
If i have for example 3 filters, i would like see in header filters combo the filtered result datas.

Can the filters be loaded dynamically? We would like to spend the combos on ourselves. Do you have this method?

Thank you.

8
Hy there, i'm waiting for your answer.

9
Select typed filter is working wrong, when DOUBLE SPACE is found in select list.
You may be typing a text incorrectly.

If there is a such text in the select list, filtering will give you a blank set.

Please, look at the video:
https://drive.google.com/open?id=0B2r2JsrXrKFbYk5ZOGEtQUdjZlk

10
Great Thanks!

The ignoreCase: true option is OK for both problem.

Very Thank you!

11
Help for ParamQuery Pro / column > filter > type=select order problem
« on: June 08, 2017, 12:54:37 am »
Dear Support!

I'm a hungarian man. I use "utf8_hungarian_ci" code in database and in applications.

The order is in the grid select combo: (example)
Magyar József
Marosi Katalin
Nádori Géza
Pap Zoltán
Postás Ferenc
kis aliz
magyar péter
Örs Gábor
Új Tamás

so the first character M,M,N,P,P,k,m,Ö,Ú

The order is in normal select combo: (example)
kis aliz
Magyar József
magyar péter
Marosi Katalin
Nádori Géza
Örs Gábor
Pap Zoltán
Postás Ferenc
Új Tamás

so the first character k,M,m,M,N,Ö,P,P,Ú

This is right by hungarian alphabet.

I could not find a solution in the methods. Is there a solution to this?
(Look at the attachment as well!)
Thank you...

12
Help for ParamQuery Pro / Re: EXPORT function absolutely not working
« on: April 24, 2017, 11:26:55 am »
Yes, thank you.

In the meantime I have solved it, but the url has not been clear so far in your samples.

But it is clear: url: 'http://.....somepath/somefile.php'

13
Help for ParamQuery Pro / Re: EXPORT function absolutely not working
« on: April 21, 2017, 09:43:51 pm »
OK, the local version with filesaver succeeded.

GET and POST requests: Where can I refer to this php code url?

14
Help for ParamQuery Pro / Re: EXPORT function absolutely not working
« on: April 21, 2017, 07:39:08 pm »
Thank you, but unfortunately this did not help.

"/o/" is an path in localhost.

Please, write me how and what to give here:
Code: [Select]
$("#grid_export").pqGrid("exportExcel", { url: "/pro/demos/excel", sheetName: "pqGrid sheet" });

Where can I refer to this php code?
Code: [Select]
if (isset($_POST["excel"]) && isset($_POST["extension"]))       
{
    $extension = $_POST["extension"];   
    if ($extension == "csv" || $extension == "xml")
    {               
        session_start();
        $_SESSION['excel'] = $_POST['excel'];
        $filename = "pqGrid." . $extension;             
        echo $filename;       
    }
}
else if(isset($_GET["filename"]))
{
    $filename = $_GET["filename"];
    if ($filename == "pqGrid.csv" || $filename == "pqGrid.xml")
    {
        session_start();       
        if (isset($_SESSION['excel'])) {   
            $excel = $_SESSION['excel'];       
            $_SESSION['excel']=null;       
            header('Content-Disposition: attachment; filename="'.$filename.'"');
            header('Content-Type: text/plain');
            header('Content-Length: ' . strlen($excel));
            header('Connection: close');           
            echo $excel;
            exit;
        }   
    }
}

Thank you.

15
Help for ParamQuery Pro / EXPORT function absolutely not working
« on: April 21, 2017, 12:14:27 pm »
Surely i can not do everything, but i do not work with excel export. By clicking "excel export" button, nothing happens.

When it already works, I will use it on the server side, but I do not know how to refer to php as well.
The attached code was copied entirely from the paramquery example programs.

What is missing?

Code: [Select]
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/pq-pro/pqgrid.min.css" />
<link rel="stylesheet" href="/pq-pro/pqgrid.ui.min.css" />
<link rel="stylesheet" href="/pq-pro/themes/antracit/pqgrid.css" />
<link rel="stylesheet" href="/pq-pro/myTheme.css" />

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
    <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css" />

<script src="/pq-pro/pqgrid.min.js"></script>
<script src="/pq-pro/touch-punch/touch-punch.min.js"></script>
<script src="/pq-pro/localize/pq-localize-hu.js"></script>
<script src="/pq-pro/jsZip-2.5.0/jszip.min.js"></script>

<script>

    $(function () {
        var data = [
            { rank: 1, company: 'Exxon Mobil', revenues: 339938.0, profits: 36130.0 },
            { rank: 2, company: 'Wal-Mart Stores', revenues: 315654.0, profits: 11231.0 },
            { rank: 3, company: 'Royal Dutch Shell', revenues: 306731.0, profits: 25311.0 },
            { rank: 4, company: 'BP', revenues: 267600.0, profits: 22341.0 },
            { rank: 5, company: 'General Motors', revenues: 192604.0, profits: -10567.0 },
            { rank: 6, company: 'Chevron', revenues: 189481.0, profits: 14099.0 },
            { rank: 7, company: 'DaimlerChrysler', revenues: 186106.3, profits: 3536.3 },
            { rank: 8, company: 'Toyota Motor', revenues: 185805.0, profits: 12119.6 },
            { rank: 9, company: 'Ford Motor', revenues: 177210.0, profits: 2024.0 },
            { rank: 10, company: 'ConocoPhillips', revenues: 166683.0, profits: 13529.0 },
            { rank: 11, company: 'General Electric', revenues: 157153.0, profits: 16353.0 },
            { rank: 12, company: 'Total', revenues: 152360.7, profits: 15250.0 },
            { rank: 13, company: 'ING Group', revenues: 138235.3, profits: 8958.9 },
            { rank: 14, company: 'Citigroup', revenues: 131045.0, profits: 24589.0 },
            { rank: 15, company: 'AXA', revenues: 129839.2, profits: 5186.5 },
            { rank: 16, company: 'Allianz', revenues: 121406.0, profits: 5442.4 },
            { rank: 17, company: 'Volkswagen', revenues: 118376.6, profits: 1391.7 },
            { rank: 18, company: 'Fortis', revenues: 112351.4, profits: 4896.3 },
            { rank: 19, company: 'Crédit Agricole', revenues: 110764.6, profits: 7434.3 },
            { rank: 20, company: 'American Intl. Group', revenues: 108905.0, profits: 10477.0 }
        ];

        var obj = {
            showTitle: false,
            height: 'flex',
            scrollModel: { autoFit: true },
            pageModel: { type: 'local' },
            toolbar: {
                cls: 'pq-toolbar-export',
                items: [{
                    type: 'button',
                    label: "Export to Excel",
                    icon: 'ui-icon-document',
                    listeners: [{
                        "click": function (evt) {
                             $("#grid_export").pqGrid("exportExcel", { url: "/o/", sheetName: "pqGrid sheet" });
                        }
                    }]
                }]
            }
        };
        obj.colModel = [
            { title: "Rank", width: 100, dataType: "integer", dataIndx: "rank" },
            { title: "Company", width: 200, dataType: "string", dataIndx: "company" },
            { title: "Revenues ($ millions)", width: 150, dataType: "float", align: "right", dataIndx: "revenues" },
            { title: "Profits ($ millions)", width: 150, dataType: "float", align: "right", dataIndx: "profits",
                render: function (ui) {
                    return $.paramquery.formatCurrency(ui.cellData);
                }
            }
        ];
        obj.dataModel = {
            data: data,
            location: "local",
            sorting: "local",
            sortIndx: "profits",
            sortDir: "down"
        };
        var $grid = $("#grid_export").pqGrid(obj);
    });

</script>


</head>
<body style="font-size: 10px">

<div id="grid_export" style="margin:auto;"></div>
</body>
</html>

Thanks for your help.

Pages: [1]