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

Pages: [1]
1
Hi!

The following code is not working with a colmodel if column grouping enabled:

var colModel = $gridMain.pqGrid("option", "colModel");
var strCM = JSON.stringify(colModel);

Gives an «cyclic object value»-error.

Is there an other way to save/serialize to colmodel?

The code works perfectly with simple colmodels.

2
Help for ParamQuery Pro / Re: Updating main grid from detail grid
« on: August 11, 2016, 01:57:06 pm »
This works great!

I was not using updateRow(). Instead I updated the rowData directly.

Thank you!

3
Help for ParamQuery Pro / Updating main grid from detail grid
« on: August 10, 2016, 02:27:24 pm »
I have a main grid with track changes enabled.

In the “cellSave” of the detail grid I update a value in the data of the parent main grid. The new value shows as expected.

However, when doing:

Code: [Select]
var changes = $gridMain.pqGrid("getChanges", {
                    format: 'byVal'
});

Does not return the changes that were made from the detail grid.

It looks like track changes were not triggered. Is it possible to trigger this and how can that be done?

Thank you!

4
Help for ParamQuery Pro / Re: Calculated field and track changes
« on: August 02, 2016, 06:51:21 pm »
Thank you for your answer.

Yes updateList has the new values, but "oldList" has not the old value for the computed field.

It looks like "oldList" is not documented at all. Would you recommend not using it?

I was also expecting the red modified-flag on the computed field column.


5
Help for ParamQuery Pro / Calculated field and track changes
« on: August 02, 2016, 12:03:08 pm »
Hello,

Please take a look at: http://jsfiddle.net/f2dzkymf/1/

I this grid I have a calculated field which gets updated automatically. I enabled track changes on the grid as well.

How do I get an update of the calculated field to be registered in the track log?

Thank you.




6
Help for ParamQuery Pro / Track changes on detail grid possible?
« on: July 22, 2016, 11:48:48 am »
Hello,

My application is roughly based on your example on http://paramquery.com/pro/demos/nesting

I would like to enable track changes on each detail grid. I added recIndx and trackModel to gridDetailModel in your example, but it is not working. Am I overlooking something?

Code: [Select]
var gridDetailModel = {

    recIndx: "ProductID",
    trackModel: {
        on: true
    },

    width: "flex",
    pageModel: {
        type: "local",
        rPP: 5,
        strRpp: ""
    },
    columnBorders: false,
    showTop: false,
    showBottom: false,
    sortModel: {
        sorter: [{
            dataIndx: 'ProductName',
            dir: "up"
        }]
    },
    dataModel: {
        location: "remote",
        dataType: "jsonp",
        method: "GET",
        getData: function(dataJSON) {
            return {
                data: dataJSON.data
            };
        }
    },
    colModel: [{
        title: "Order ID",
        width: 85,
        dataIndx: "OrderID"
    }, {
        title: "Product ID",
        width: 95,
        dataType: "integer",
        dataIndx: "ProductID"
    }, {
        title: "Product Name",
        width: 150,
        dataIndx: "ProductName"
    }, {
        title: "Unit Price",
        width: "100",
        align: "right",
        dataIndx: "UnitPrice",
        dataType: "float",
        summary: {
            type: "sum"
        }
    }, {
        title: "Quantity",
        align: "right",
        width: 85,
        dataIndx: "Quantity",
        dataType: "integer",
        summary: {
            type: "sum"
        }
    }, {
        title: "Discount",
        width: 80,
        align: "right",
        dataIndx: "Discount",
        dataType: "float"
    }],
    groupModel: {
        on: true,
        dataIndx: ["OrderID"],
        dir: ["up"],
        title: ["{0} - {1} product(s)"],
        icon: ["ui-icon-triangle-1-se", "ui-icon-triangle-1-e"]
    },
    refresh: function(evt, ui) {
        if (ui.source != "flex") {
            this.flex();
        }
    },
    //flex: { one: true },
    height: 'flex',
    numberCell: {
        show: false
    },
    title: "Order Details"
};

7
Help for ParamQuery Pro / Re: Entering decimal comma
« on: July 22, 2016, 11:37:06 am »
Thank you!

8
Help for ParamQuery Pro / Entering decimal comma
« on: July 21, 2016, 11:45:18 am »
Hello,

Please take a look at http://jsfiddle.net/1k5r9j0v/1/

Formatting is done by using format: '##.###,00' in the colmodel. This works great!

However, when editing the values, it does not allow comma as decimal mark. Is there a way of allowing this? Our users must be able to input an amount like 1234,56.

Do I have to use data type string instead?

Thank you.
KR.


Pages: [1]