jQWidgets Forums

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts

  • libibd
    Participant

    Hi Stanislav,

    Thank you for that, but i think that you’ve missed my point,
    The data i’m using in guage are very high numbers and i need thousands separator to be displayed in
    both guage caption and guage scale label.
    How can i achieve that?

    Thanks in advance

    in reply to: Edit heirarchial TreeGrid Edit heirarchial TreeGrid #97435

    libibd
    Participant

    Hristo,
    Thank you so much!!!!
    🙂

    in reply to: JqxPivotGrid and json data JqxPivotGrid and json data #96920

    libibd
    Participant

    Hi Hristo,
    thank you for your response and example,

    When ever i set my data as a local json array everything is working like expected.
    The problem occurs when i’m receiving json data from remote data source and not as local data.

    like your example just like your example:

    var source2 = { localdata: jsonData,
    datatype: “json”,
    datafields: [ { name: ‘??’, type: ‘string’ },
    { name: ‘??’, type: ‘string’ },
    { name: ‘??’, type: ‘string’ },
    { name: ‘??’, type: ‘string’ },
    { name: ‘??’, type: ‘number’ },
    { name: ‘??’, type: ‘number’ },
    { name: ‘??’, type: ‘number’ } ]
    };

    No Data loaded:
    var source2 = { url: “/???/????????”, type: “POST”,
    datatype: “json”, datafields: [ { name: ‘??’, type: ‘string’ },
    { name: ‘??’, type: ‘string’ },
    { name: ‘??’, type: ‘string’ },
    { name: ‘??’, type: ‘string’ },
    { name: ‘??’, type: ‘number’ },
    { name: ‘??’, type: ‘number’ },
    { name: ‘??’, type: ‘number’ } ]
    };

    Can you please check this case again with remote json data?


    libibd
    Participant

    Hi Ivailo,

    I’m working on the latest version of course.
    I found the problem,
    jqxValidator works perfectly fine when using jquery-1.11.1.min, but not when using jquery-3.1.1.min, it looks like a bug to me…

    Please note/check, close on click not working when using 3.1.1, only when using 1.11.1 version.

    Is there a way to fix this?

    Thanks,
    Libi.

    in reply to: expand group by current date expand group by current date #82727

    libibd
    Participant

    This is the workaround I’ve made,
    Please advice if there is an easier way:

    in grid bindingcomplete:

    var rows = $(‘#jqxgrid’).jqxGrid(‘getdisplayrows’);
    var arr = [];

    for (var i = 0; i < rows.length; i++)
    {
    var row = rows[i];
    var newDate = new Date(row.ds);

    if (arr.indexOf(newDate.valueOf()) == -1)
    arr.push(newDate.valueOf());
    }

    var tmp = new Date(year, new Date().getMonth(), new Date().getDate());
    var indexOfCurrentDate = -1;

    if (arr.indexOf(tmp.valueOf()) != -1)
    indexOfCurrentDate= arr.indexOf(tmp.valueOf());

    $(‘#jqxgrid’).jqxGrid(‘addgroup’, ‘ds’);
    var group = $(‘#jqxgrid’).jqxGrid(‘getgroup’, indexOfCurrentDate);

    in reply to: expand group by current date expand group by current date #82716

    libibd
    Participant

    Hi Hristo,
    Thank you so much for your answer,
    Let me try to explain again, I’m grouping my first column witch holds dates, therefore i’m getting grouped display with all dates from 1st till the end of month.
    What I need to do is to expand only the row/group that hold today.
    For example $(‘#jqxgrid’).jqxGrid(‘getgroup’, 0) -> will open the first group in grid, getdisplayrows returns all rows even if not displayed and the uid i’m getting is not helping me with getgroup function, what I need is the index/uid of “getdisplygroups” (which is not exist…) so I can set it in the getgroup method.

    help please….


    libibd
    Participant

    Hi Ivailo,
    Here is my code, it’s a mix of your samples and the snip code above:

    Please advice how to line up total aggregate with Price column.
    SOS 🙂


    libibd
    Participant

    Hi,
    I need to line up me aggregates under grid columns but it doesn’t seem to work, what am I doing wrong?

    var groupsrenderer = function (text, group, expanded, data) {
    var text = data.groupcolumn.text + ‘: ‘ + group;

    if (data.subItems.length > 0)
    {
    var aggregate_nowTillEnd = this.getcolumnaggregateddata(“nowTillEnd”, [‘sum’], true, data.subItems);
    var aggregate_fullCurrMonth = this.getcolumnaggregateddata(“fullCurrMonth”, [‘sum’], true, data.subItems);
    var aggregate_nextMonth = this.getcolumnaggregateddata(“nextMonth”, [‘sum’], true, data.subItems);
    }

    var renderstring = ‘<div class=”jqx-grid-groups-row” style=”display: inline;”>’ +
    ‘<span class=”jqx-grid-groups-row-details”>’ + text + ‘ </span>’ +
    ‘<div style=”right:250px;width:80px;display:inline;position:absolute”><span class=”jqx-grid-groups-row-details”>’ + aggregate_nowTillEnd.sum + ‘</span></div>’ +
    ‘<div style=”right:350px;width:80px;display:inline;position:absolute”><span class=”jqx-grid-groups-row-details”>’ + aggregate_fullCurrMonth.sum + ‘</span></div>’ +
    ‘<div style=”right:450px;width:80px;display:inline;position:absolute”><span class=”jqx-grid-groups-row-details”>’ + aggregate_nextMonth.sum + ‘</span></div>’ +
    ‘</div>’;

    return renderstring;

    }

Viewing 8 posts - 1 through 8 (of 8 total)