jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 76 through 90 (of 95 total)
  • Author
    Posts
  • in reply to: change style on click legend change style on click legend #66708

    arkgroup
    Participant

    Hi Nadezhda,

    Thank you for your sample. What I actually need is changing color when click on bar, not legend.

    Regards.

    in reply to: change style on click legend change style on click legend #66642

    arkgroup
    Participant

    Data field might work too. I just want my selection to stand out, so I know what I did click…

    Thanks

    in reply to: xAxis label color for 2 charts xAxis label color for 2 charts #66614

    arkgroup
    Participant

    Dimitar,

    Thanks a lot for your help.

    Regards,

    arkgroup


    arkgroup
    Participant

    Looks like this code is working…

    $(document).mouseup(function (e) {
    var container = $(“#popupWindow”);

    if (!container.is(e.target) // if the target of the click isn’t the container…
    && container.has(e.target).length === 0) // … nor a descendant of the container
    {
    $(“#popupWindow”).jqxWindow(‘close’);

    }
    });

    in reply to: chart update issue chart update issue #62599

    arkgroup
    Participant

    I find work around. I created instance of the chart and use this code in the timer
    chart.source = data;
    chart.update();

    Thanks

    in reply to: chart update issue chart update issue #62576

    arkgroup
    Participant

    Hi Dimitar,

    I move code, but it did not help. What else can you suggest?
    Did you replicate issue?

    Thanks

    in reply to: Time formatting Time formatting #62487

    arkgroup
    Participant

    Sorry, type:’date’ was missing

    in reply to: IPhone style IPhone style #62113

    arkgroup
    Participant

    Thanks, I forgot meta tag.

    in reply to: grid sorting problem grid sorting problem #57924

    arkgroup
    Participant

    I miss filter setting and filter still works.

    in reply to: grid sorting problem grid sorting problem #57917

    arkgroup
    Participant

    That is it, adding filterable: true fix the problem. My code from previous post did not have that.

    Thanks for your help.

    in reply to: grid sorting problem grid sorting problem #57912

    arkgroup
    Participant

    Can you post your code to JSFiddle?

    Thanks

    in reply to: grid sorting problem grid sorting problem #57903

    arkgroup
    Participant

    I can reproduce by running this code from your demo. After column sort, I cannot check checkbox.

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <title id=’Description’>This demo illustrates the basic functionality of the Grid plugin. The jQWidgets Grid plugin offers rich support for interacting with data, including paging, grouping and sorting.
    </title>
    <link rel=”stylesheet” href=”../../jqwidgets/styles/jqx.base.css” type=”text/css” />
    <script type=”text/javascript” src=”../../scripts/jquery-1.10.2.min.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxcore.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxdata.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxbuttons.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxscrollbar.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxmenu.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxcheckbox.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxlistbox.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxdropdownlist.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxgrid.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxgrid.sort.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxgrid.pager.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxgrid.selection.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxgrid.edit.js”></script>
    <script type=”text/javascript” src=”../../scripts/demos.js”></script>
    <script src=”../../jqwidgets/jqxgrid.filter.js” type=”text/javascript”></script>
    <script type=”text/javascript”>
    $(document).ready(function () {
    var url = “../sampledata/products.xml”;

    // prepare the data
    var source =
    {
    datatype: “xml”,
    datafields: [
    { name: ‘ProductName’, type: ‘string’ },
    { name: ‘QuantityPerUnit’, type: ‘int’ },
    { name: ‘UnitPrice’, type: ‘float’ },
    { name: ‘UnitsInStock’, type: ‘float’ },
    { name: ‘Discontinued’, type: ‘bool’ }
    ],
    root: “Products”,
    record: “Product”,
    id: ‘ProductID’,
    url: url
    };

    var cellsrenderer = function (row, columnfield, value, defaulthtml, columnproperties, rowdata) {
    if (value < 20) {
    return ‘<span style=”margin: 4px; float: ‘ + columnproperties.cellsalign + ‘; color: #ff0000;”>’ + value + ‘</span>’;
    }
    else {
    return ‘<span style=”margin: 4px; float: ‘ + columnproperties.cellsalign + ‘; color: #008000;”>’ + value + ‘</span>’;
    }
    }

    var dataAdapter = new $.jqx.dataAdapter(source, {
    downloadComplete: function (data, status, xhr) { },
    loadComplete: function (data) { },
    loadError: function (xhr, status, error) { }
    });

    // initialize jqxGrid
    $(“#jqxgrid”).jqxGrid(
    {
    width: 850,
    source: dataAdapter,
    pageable: true,
    autoheight: true,
    sortable: true,
    altrows: true,
    enabletooltips: true,
    editable: true,
    selectionmode: ‘multiplecellsadvanced’,
    columns: [
    { text: ‘Product Name’, columngroup: ‘ProductDetails’, datafield: ‘ProductName’, width: 250 },
    { text: ‘Quantity per Unit’, columngroup: ‘ProductDetails’, datafield: ‘QuantityPerUnit’, cellsalign: ‘right’, align: ‘right’, width: 200 },
    { text: ‘Unit Price’, columngroup: ‘ProductDetails’, datafield: ‘UnitPrice’, align: ‘right’, cellsalign: ‘right’, cellsformat: ‘c2’, width: 200 },
    { text: ‘Units In Stock’, datafield: ‘UnitsInStock’, cellsalign: ‘right’, cellsrenderer: cellsrenderer, width: 100 },
    { text: ‘Discontinued’, columntype: ‘checkbox’, datafield: ‘Discontinued’ }
    ],
    ready: function () {
    var filtergroup = new $.jqx.filter();
    var filter_or_operator = 1;
    var filtervalue = ’10’;
    var filtercondition = ‘equal’;
    var filter1 = filtergroup.createfilter(‘stringfilter’, filtervalue, filtercondition);
    filtergroup.addfilter(filter_or_operator, filter1);
    $(“#jqxgrid”).jqxGrid(‘addfilter’, ‘QuantityPerUnit’, filtergroup);
    // apply the filters.
    $(“#jqxgrid”).jqxGrid(‘applyfilters’);

    },

    columngroups: [
    { text: ‘Product Details’, align: ‘center’, name: ‘ProductDetails’ }
    ]
    });
    });
    </script>
    </head>
    <body class=’default’>
    <div id=’jqxWidget’ style=”font-size: 13px; font-family: Verdana; float: left;”>
    <div id=”jqxgrid”>
    </div>
    </div>
    </body>
    </html>

    in reply to: grid sorting problem grid sorting problem #57859

    arkgroup
    Participant

    I can replicate that behavior by modifying your demo. It’s because of filter. Please add reference to jqxgrid.filter.js and add this code to $(“#jqxgrid”).jqxGrid

    ready: function () {
    var filtergroup = new $.jqx.filter();
    var filter_or_operator = 1;
    var filtervalue = ’10’;
    var filtercondition = ‘equal’;
    var filter1 = filtergroup.createfilter(‘stringfilter’, filtervalue, filtercondition);
    filtergroup.addfilter(filter_or_operator, filter1);
    $(“#jqxgrid”).jqxGrid(‘addfilter’, ‘QuantityPerUnit’, filtergroup);
    // apply the filters.
    $(“#jqxgrid”).jqxGrid(‘applyfilters’);

    },


    arkgroup
    Participant

    What if I don’t use column’s type and add check box or button using cell render or something else?

    in reply to: jqxChart in grid cell jqxChart in grid cell #54973

    arkgroup
    Participant

    Hi,

    I saw sample when you put images in cell.

    Thanks

Viewing 15 posts - 76 through 90 (of 95 total)