jQWidgets Forums
Forum Replies Created
-
Author
-
February 26, 2015 at 1:51 pm in reply to: Checkbox select all (only current page) Checkbox select all (only current page) #67745
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,
SadeghJanuary 21, 2015 at 12:42 pm in reply to: How to copy text of rows in jqxgrid while making it remain uneditable? How to copy text of rows in jqxgrid while making it remain uneditable? #65756Hi Peter,
But I think it matters because if you turn off the editable, you won’t be able to check the checkboxes.
Regards,
SadeghJanuary 21, 2015 at 10:58 am in reply to: How to copy text of rows in jqxgrid while making it remain uneditable? How to copy text of rows in jqxgrid while making it remain uneditable? #65742Hi,
This one is editable, as I mentioned I don’t want the value be editable.
Thanks,
SadeghJanuary 21, 2015 at 10:42 am in reply to: How to copy text of rows in jqxgrid while making it remain uneditable? How to copy text of rows in jqxgrid while making it remain uneditable? #65740Hi 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’ }
]
});
});January 21, 2015 at 10:26 am in reply to: How to copy text of rows in jqxgrid while making it remain uneditable? How to copy text of rows in jqxgrid while making it remain uneditable? #65737Hi,
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,
SadeghHi,
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,
-
AuthorPosts