jQWidgets Forums

Forum Replies Created

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

  • sadegh
    Participant

    Hi Dimitra,

    Thanks for your sample, I knew this sample, and there is another one similar but less code but same approach. However this only works with low data, if you set the table to 200 rows and like 20 columns then it will take 7 seconds in my case to select the checkboxes which is not acceptable.
    the selectionmode: ‘checkbox’ param is a good option if you can give support for it. I don’t have problem with event handler or any other things, everything works fine, the only problem is that it doesn’t select the current page. and there is also a bug, because when you select all, it select all indexes, but when you unselect them it unselects the the current page only.
    If someone can fix that would be very nice, I realy need that feature.

    Regards,
    Sadegh


    sadegh
    Participant

    Hi Peter,

    But I think it matters because if you turn off the editable, you won’t be able to check the checkboxes.

    Regards,
    Sadegh


    sadegh
    Participant

    Hi,

    This one is editable, as I mentioned I don’t want the value be editable.

    Thanks,
    Sadegh


    sadegh
    Participant

    Hi Peter,

    Thanks for your prompt response. can you please test the following script for me is from your website’s demos.

    `$(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: ‘checkbox’,
    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’ }
    ],
    columngroups: [
    { text: ‘Product Details’, align: ‘center’, name: ‘ProductDetails’ }
    ]
    });
    });


    sadegh
    Participant

    Hi,

    I have problem with CTRL+C like any others.I want to copy the value of a cell to clipboard with ctrl+c. I don’t want to make the value editable so the option is out. I have set enablebrowserselection to true. my editmode is already set on “checkbox” so I can’t change it to click or dblclick and so on. Please give me a solution to enable the clipboard.

    Regards,
    Sadegh

    in reply to: grouping of items failed grouping of items failed #65196

    sadegh
    Participant

    Hi,
    I am using the same method combined with jqxListBox Filtering, However, the filtering works well but the groups names remain in list, any solution to remove the empty groups from the list while filtering? a live example can be your website “API Reference” tab.

    Regards,

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