tony

Forum Replies Created

Viewing 15 replies - 571 through 585 (of 7,981 total)
  • Author
    Replies
  • in reply to: Error with 3 or more yDimensions.(pivot) #94373
    tony
    Keymaster

    Hello,

    Thanks for the test case. With the last code this works fine for me except that there was another bug which I will see how to fix.

    I have put the new script in our demo site – you can see the demo index and load the script or download it.

    To work your code you should put a converter function.It should look like this:

    var grid = jQuery(“#table”).jqGrid(‘jqPivot’, “data3.json”+window.location.search,
    // pivot options
    {
    xDimension : [
    { dataName: ‘browser’, label: ‘Browser’, align: ‘center’}
    ],
    yDimension : [
    {dataName: ‘date_visit.year’, label: ‘Year’},
    {dataName: ‘date_visit.quarter’, label: ‘Quarter’, converter: function(val, axVal, ayVal){
    var ret;
    switch (val) {
    case “1”:
    ret = “First”;
    break;
    case “2”:
    ret = “Second”;
    break;
    case “3”:
    ret = “Third”;
    break;
    }
    return ret;
    }
    },
    {dataName: ‘date_visit.month’, label: ‘Month’}
    ],
    aggregates : [
    {member: ‘pageviews_sum’, aggregator : ‘sum’, label:’Sum of pageviews’, summaryType: ‘sum’}
    ],
    rowTotals: false,
    colTotals : false
    },
    // grid options
    {
    groupingView : { hideFirstGroupCol : true },
    gridview: true,
    rowNum : 10,
    pager: “#pager”,
    caption: ‘Website / Visits’ },
    {
    reader : ‘cells’
    }
    );

    Kind Regards

    in reply to: Columnchooser double click vs single click #95405
    tony
    Keymaster

    Hello,

    This is a good question.
    Unfortunately this is not supported. This depend on multiselect plugin distributed with jqGrid.
    I have look into code and see that only a click is supported, but ….
    If you are familiar with JavaScript you can easy make this to work depending on your needs –
    just open multiselect.js and see the jQuery click functions replace the need (not all) with dblclick.

    Kind Regards

    in reply to: Problem Header Width #95404
    tony
    Keymaster

    Hello,

    The problem maybe is in your configuration. Since you load the columns dynamically it is possible that if you use repeatItems set to true. In this case th number of header columns defined in colmodel does not equal to the number of columns in the response.

    Kind Regards

    in reply to: Error with 3 or more yDimensions.(pivot) #95403
    tony
    Keymaster

    Hello,

    There was some fixes in the GitHub regarding pivot.
    Can you please post a simple test case, since I can not reproduce this problem.

    Thank you.

    Kind Regards

    in reply to: Filtering Multiple Grids #95399
    tony
    Keymaster

    Hello,

    It all depends where you put this line of code. It is recommended to to this after calling the filterToolbar method.
    Another solution of your problem is maybe to use defaultValue in colModel searchoptions. See docs.

    Regards

    in reply to: Filtering Multiple Grids #95396
    tony
    Keymaster

    Hello,

    Sorry I put a wrong code. try this:

    $(“#gs_EmpNo”, “#grid1”).val(…);
    $(“#gs_EmpNo”, “#grid2”).val(…);

    where grid1 and grid2 are your grid id.

    I missed “#” in my previous post

    How you set this in your code?

    Kind Regards

    in reply to: New button for reports. #95395
    tony
    Keymaster

    Hello,

    When the search is on to the url is added search => true – depending on this parameter you can redirect the search server side to location where you want to be.

    Regards

    in reply to: Event onblur in inputs on form editing #95390
    tony
    Keymaster

    Hello,

    It seems you use our commercial components. Please post your question here: trirand.net

    Regards

    in reply to: New button for reports. #95389
    tony
    Keymaster

    Hello,

    You can do this using the definition of custom buttons in the grid.
    The code is quite simple and you can write it depending on your requierments.
    See in the docs and in the demo navButtonAdd method.

    Regards

    in reply to: Filtering Multiple Grids #95388
    tony
    Keymaster

    Hello,

    1. You can solve this problem if you use

    $(“gs_EmpNo”, “#grid1”).val(…);
    $(“gs_EmpNo”, “#grid2”).val(…);

    to differentiate the values,

    2. This is not correct – the search try first to use the INDEX property and if it is not found it uses the NAME one.
    So you can set the index to post the correct name to database.

    Regards

    in reply to: Unwanted Javascript displayed in the tooltip cell #95387
    tony
    Keymaster

    Hello,

    In your colModel item again with the formatter add a option


    formatter: myFunction,
    title : false

    Regards

    in reply to: Event onblur in inputs on form editing #95753
    tony
    Keymaster

    Hello,

    Look for dataEvents and dataInit in the docs.

    Kind Regards

    in reply to: JQGrid Edit Form does not get focus on submit #95748
    tony
    Keymaster

    Hello,

    Thank you for the recommendation. I will see what I can do for this.

    Kind Regards

    in reply to: Changing Font color of a Selected Row. #95747
    tony
    Keymaster

    Hello,

    The tricky code here is that you should set the css style after the grid code by example:

    //<![CDATA[
    jQuery(document).ready(function() {

    var grid = jQuery(“#list”);
    grid.jqGrid({
    ……..
    });
    });
    //]]>

    .ui-jqgrid-btable .ui-state-highlight { background: #003366;}

    Kind Regards

    in reply to: Inaccuracies on translation #95796
    tony
    Keymaster

    Hello,

    Can you please explain exactly which inline editing titles can not be translated.
    We have inline navigator or inline formater – i.e the buttons are on the same row.

    Thank you.

    Kind Regards

Viewing 15 replies - 571 through 585 (of 7,981 total)

Stay connected with us in your favorite flavor!