jQWidgets Forums
Forum Replies Created
-
Author
-
January 9, 2018 at 10:11 am in reply to: grid with charts in the cells grid with charts in the cells #98191
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,
frankJanuary 4, 2018 at 4:11 pm in reply to: grid with charts in the cells grid with charts in the cells #98153hi stanislav,
i changed jqxgrid to jqxdatatable and it works like a charme…
THX for your help.
kindest regards, frank
December 27, 2017 at 3:53 pm in reply to: grid with charts in the cells grid with charts in the cells #98055hi 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,
frankhi Nadezhda,
sorry for late reply, but i have only time to test on weekend.
i will try that and give you feedback.regards, frank
hi Nadezhda,
yes, they are all 3.6.0, i downloaded the project 4 days ago…
regards frank
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
hi Nadezhda,
thanx for the answer.
i tried both, async true and false, same result: empty division…any other suggestions?
regards frank
-
AuthorPosts