jQWidgets Forums

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: grid with charts in the cells grid with charts in the cells #98191

    frankbur
    Participant

    hi stanislav,

    i have a new question concerning my construct.
    everything works fine since changing from grid to datatable.
    but now i need the first column to be fixed, pinned.

    i use a simple loop to generate the columns:

    for (var i = 0; i < cols.length; i++) {
    var obj = {};
    obj[“text”] = cols[i].name;
    obj[“datafield”] = cols[i].name;
    obj[“width”] = 180;
    columns.push(obj);
    }

    this works fine, but not pinned, then i tried this:

    for (var i = 0; i < cols.length; i++) {
    var obj = {};
    obj[“text”] = cols[i].name;
    obj[“datafield”] = cols[i].name;
    obj[“width”] = 180;

    if (cols[i].name == ‘Callcenter’) {
    obj[“pinned”] = true;
    } else {
    obj[“pinned”] = false;
    }

    columns.push(obj);
    }

    now callcenter column is pinned, but all the charts are destroyed again, rendering-div is still alive in datatable, but empty…
    when i pin all the columns,

    for (var i = 0; i < cols.length; i++) {
    var obj = {};
    obj[“text”] = cols[i].name;
    obj[“datafield”] = cols[i].name;
    obj[“width”] = 180;
    obj[“pinned”] = true;

    columns.push(obj);
    }

    which is senseless, only for testing, it works, all the charts are visible.
    i have no error on console.

    i also tried a button whith click-event:

    $(“#datatable”).jqxDataTable(‘setColumnProperty’, ‘Callcenter’, ‘pinned’, true);

    the site gets loaded, all charts are visible, but when i press the button, first column is pinned and charts are gone…

    so my question: why are the charts alive when i pin no column or all columns and when i pin one column the charts are destroyed?

    kindest regards,
    frank

    in reply to: grid with charts in the cells grid with charts in the cells #98153

    frankbur
    Participant

    hi stanislav,

    i changed jqxgrid to jqxdatatable and it works like a charme…

    THX for your help.

    kindest regards, frank

    in reply to: grid with charts in the cells grid with charts in the cells #98055

    frankbur
    Participant

    hi stanislav,

    sorry for late answer, christmas…
    virtualmode didnt work for me…
    before i will go in details, is it possible in general to put barchart in gridcells and the barcharts are still alive, while scrolling the grid?
    case yes: do you have an example for me?

    kindest regards,
    frank

    in reply to: got no data for menu got no data for menu #64052

    frankbur
    Participant

    hi Nadezhda,

    sorry for late reply, but i have only time to test on weekend.
    i will try that and give you feedback.

    regards, frank

    in reply to: got no data for menu got no data for menu #63844

    frankbur
    Participant

    hi Nadezhda,

    yes, they are all 3.6.0, i downloaded the project 4 days ago…

    regards frank

    in reply to: got no data for menu got no data for menu #63837

    frankbur
    Participant

    hi Nadezhda,

    thanx for reply.

    your example works, all examples with localdata works…

    the reference to *url* cant be wrong(i guess), because when i call

    http://localhost/xxx/lib/client.php

    standalone, i got correct output.

    but calling the url here

    <script type=”text/javascript”>

    $(document).ready(function () {

    var url = “http://localhost/xxx/lib/client.php”;
    // prepare the data
    var source =
    {
    datatype: “json”,
    datafields: [
    { name: ‘id’ },
    { name: ‘parentid’ },
    { name: ‘text’ },
    ],
    id: ‘id’,
    url: url
    async true/false
    };

    i got no output anymore, only blank division.

    that’s what i dont understand…

    any further suggestions?

    regards frank

    in reply to: got no data for menu got no data for menu #63827

    frankbur
    Participant

    hi Nadezhda,

    thanx for the answer.
    i tried both, async true and false, same result: empty division…

    any other suggestions?

    regards frank

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