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 - nuno.nogueira

Pages: [1] 2 3 ... 7
1
Help for ParamQuery Pro / Wrap sub-grid and Localization
« on: April 16, 2014, 02:36:27 pm »
Hello,

My sub-grid is initialized like:

Code: [Select]
var $grid = {
        width: 900,
        height: 300,
        flexHeight: true,
        collapsible: false,
        wrap: true,
        hwrap: false,
        resizable: false,
        rowBorders: false,
        numberCell: {
            show: false
        },
        track: true, //to turn on the track changes.
        scrollModel: {
            autoFit: true
        },
        selectionModel: {
            type: ''
        },
        //hoverMode: 'row',
        editModel: {
            saveKey: $.ui.keyCode.ENTER
        },
        showTitle: false,
        showBottom: false,
        (...)

1-The text in the sub-grid isn't wrapped when it's long although I'm using wrap:true
2- The localization isn't changed to pt-PT although I set:

Code: [Select]
$grid.pqGrid("option", $.paramquery.pqGrid.regional['pt']);
    $grid.find(".pq-pager").pqPager("option", $.paramquery.pqPager.regional['pt']);

2
Help for ParamQuery Pro / Re: Import from Excel
« on: April 15, 2014, 06:18:34 pm »
Whoa, that's really cool to know!

3
Help for ParamQuery Pro / Import from Excel
« on: April 15, 2014, 02:35:24 am »
Hi there!

Eventually, a stupid question: is there any tool to import data from Excel?
Something like letting the user select certain columns from Excel into a paramquery table.

Thanks a lot for helping!


4
Help for ParamQuery Pro / How to wrap the column heading
« on: April 07, 2014, 10:56:00 pm »
How can I wrap the text of a certain column?
Eg: a long text may have 2 rows.

I tried adding a class to the column and also defining in the colModel:

Code: [Select]
{ title: '<span style="word-wrap:break-word;">'+'Saldo a 01-01-2014+'/span>' , etc....

5
Help for ParamQuery Pro / Re: How to disable checkbox from heading
« on: April 07, 2014, 02:34:17 pm »
Ok, I got it, thanks!

6
Help for ParamQuery Pro / How to disable checkbox from heading
« on: April 05, 2014, 09:35:44 pm »
Hello,

I'm using the cellClick event to bind a checkbox column to the database.
Because this event isn't capturing the data when the checkbox of the heading (select/unselect all), I need to replace it by a common title.
But how can I do that?
This is the code of the column in question:
Code: [Select]
{ title: "Receber?", width:0.05*larguraJanela, dataIndx: "estado", align: "center", type:'checkBoxSelection', cls: 'ui-state-default',
            resizable: false, sortable:false}


7
Hi,

That has fixed it, thanks!

 :D

8
Ok, thanks a lot, I'll leave the files unminified.
But, the link is now:

http://ebudget.portal-gestao.com/app

Basically, the same stuff..

9
Hello,

Were you able to reproduce the error?
I'm on a bit of time pressure here to close this project, will it be possible to fix the problem?

If it is ok, I'll minify the files again. Please advise.

Thanks

10
Help for ParamQuery Pro / Set the width of the sub-grid columns
« on: March 18, 2014, 06:17:49 pm »
I have a variable larguraJanela to hold the width of the parent container of my grid.

This variable is adjusted automatically everytime the window width changes, so the view of the table is responsive.

It all works fine, except the width of the columns of the sub-grid.

No matter what width I set, they do not seem to bother. It's like they choose what width they want.

Here's a sample of the code:

[code]
var $grid = {
        width: larguraJanela, //900,
        height: 300,
        flexHeight: true,
        collapsible: false,
        wrap: false,
        hwrap: false,
        resizable: false,
        rowBorders: false,
        numberCell: {
            show: false
        },
        track: true, //to turn on the track changes.
        scrollModel: {
            autoFit: true
        },
        selectionModel: {
            type: ''
        },
        //hoverMode: 'row',
        editModel: {
            saveKey: $.ui.keyCode.ENTER
        },
        showTitle: false,
        showBottom: false,
        //title: "<b>Detalhes dos registos</b>",
        colModel: [{
            title: "id",
            dataType: "integer",
            dataIndx: "id",
            editable: false,
            hidden: true
        }, {
            title: "Data",
            width: 0.015*larguraJanela, //15,
            dataType: "string",
            dataIndx: "data",
            align: "right",
            resizable:false,

  (...)

{
            title: "Conta",
            width: 0.03*larguraJanela, //25,
            dataType: "string",
            dataIndx: "nome_conta",
            align: "right",
            resizable:false,
            editor: {
                type: autoCompleteEditor
            },
            validations: [{
                type: 'minLen',
                value: '1',
                msg: 'Obrigat

11
Hello,

We have disabled mod_pagespeed, I think the scripts are non-minified now.

In addition to the above scripts, the month-changer script should also be considered:
http://www.portal-gestao.com/budget/mescorrente.js

To reproduce the error, simply go to:
http://www.portal-gestao.com/or%C3%A7amento.html

And click "somar" at the bottom to go to the following month (april)
You'll see that there's no data but the main grid will not update. If you try to expand the sub-grid, you'll get the error.

The desired result should be an empty table with the message "no rows..."

Thanks!

12
Hi,

Here they are:
http://portal-gestao.com/budget/orcamento.js

You may see the page at:
http://www.portal-gestao.com/or%C3%A7amento.html

This is most likely a bug, so I'd like to have you looking into it.

Thanks!

13
Hi,

Did you have the chance to look into this?
Everything else seems to be working, except refreshing an empty table.

Thanks for your support!

14
Help for ParamQuery Pro / Re: Subtotals calculation
« on: March 14, 2014, 05:45:30 pm »
Done. One less to worry about!
Thanks!

15
Help for ParamQuery Pro / Re: Subtotals calculation
« on: March 14, 2014, 04:05:54 pm »
It seems the function isn't even being called, since nothing is outputed to the console/alert:

Code: [Select]
summary: {
                type: function (arr) {
                    calculo = eval(arr.join("+"));console.log("1 "+calculo);
                    calculo = formatNumber(calculo, 2, ',', '.');console.log("2 "+calculo);
                    return "calculo";console.log("3 "+calculo);
                },
                title: ["<b style='font-weight:bold;'>Total :</b> {0}"]
            }

Pages: [1] 2 3 ... 7