jQWidgets Forums
Forum Replies Created
-
Author
-
December 18, 2019 at 1:17 pm in reply to: Problem with Checkbox check when sortmode:'many' Problem with Checkbox check when sortmode:'many' #107608
Hi Hristo,
Could you please provide me details that you have created a work item for this case.
As I am using Custom sorting and Custom filtering,Custom Grouping and also add some logic in these events and also bind grid with custom data so I am unable to work with functionality If we apply sort on multiple columns and Check in any row then you can check this event $(“#jqxgrid”).on(“sort”, function (event) will call many times.
I am also facing many problem with some steps-
Case 1)- If applyFirst grouping then apply second operation apply multiple columns sort.
OR
Case 2)- If first apply multiple sort and Then apply operation grouping.In both case first operation’s information gets remove and we only have second operation information with grid and Grouping and sorting events call many times.
Note- Previously I have only mentioned one issue like– “If we apply sort on multiple columns and Check in any row then you can check this event $(“#jqxgrid”).on(“sort”, function (event) will call many times“.
Please check and do the needful.
Thanks And Regards,
Ajay K.December 3, 2019 at 5:46 pm in reply to: Problem with Checkbox check when sortmode:'many' Problem with Checkbox check when sortmode:'many' #107488Hi Hristo,
I am asking about this Example-
var data = generatedata(500);
var source = {
localdata: data,
datafields: [{
name: ‘firstname’,
type: ‘string’
}, {
name: ‘lastname’,
type: ‘string’
}, {
name: ‘productname’,
type: ‘string’
}, {
name: ‘date’,
type: ‘date’
}, {
name: ‘quantity’,
type: ‘number’
}, {
name: ‘price’,
type: ‘number’
}, {
name: ‘available’,
type: ‘boolean’
}],
datatype: “array”
};var adapter = new $.jqx.dataAdapter(source);
$(“#jqxgrid”).jqxGrid({
width: 500,
theme: ‘energyblue’,
source: adapter,
editable: true,
filterable: true,
sortable: true,
sortmode: ‘many’,
columns: [{
text: ‘First Name’,
datafield: ‘firstname’,
width: 90
}, {
text: ‘Last Name’,
datafield: ‘lastname’,
width: 90
}, {
text: ‘Available’,
columntype: ‘checkbox’,
datafield: ‘available’,
width: 80
}, {
text: ‘Product’,
datafield: ‘productname’,
width: 170
}, {
text: ‘Order Date’,
datafield: ‘date’,
width: 160,
cellsformat: ‘dd-MMMM-yyyy’
}, {
text: ‘Quantity’,
datafield: ‘quantity’,
width: 80,
cellsalign: ‘right’
}, {
text: ‘Unit Price’,
datafield: ‘price’,
cellsalign: ‘right’,
cellsformat: ‘c2’
}]
});
$(“#jqxgrid”).on(“sort”, function (event)
{
alert(‘Method Calls multiple times’);
});$(“#jqxgrid”).on(‘cellendedit’, function (event) {
// event arguments.
var args = event.args;
// column data field.
var dataField = event.args.datafield;
// row’s bound index.
var rowBoundIndex = event.args.rowindex;
// cell value
var value = args.value;
// cell old value.
var oldvalue = args.oldvalue;
// row’s data.
var rowData = args.row;
console.log(“%ccellendedit”, “color: red;”, “value:”, value, “oldvalue:”, oldvalue, “dataField:”, dataField);
});In this example If we apply sort on multiple columns and Check in any row then you can check this event $(“#jqxgrid”).on(“sort”, function (event) will call many times.
Please check and do the needful.
Thanks And Regards,
Ajay K.December 18, 2014 at 6:43 pm in reply to: How all the childrens will checked when we check parent in TreeGrid. How all the childrens will checked when we check parent in TreeGrid. #64428Hi Sir/Mam,
I need check all like this demo:
http://jsfiddle.net/Dimitar_jQWidgets/axujkwrv/Thanks with regards,
RinkuDecember 18, 2014 at 6:03 pm in reply to: Need to Implement Check all in JqxDropDownlist. Need to Implement Check all in JqxDropDownlist. #64426Hi Sir/Mam,
I need check all like this demo:
http://jsfiddle.net/Dimitar_jQWidgets/axujkwrv/Thanks with regards,
RinkuDecember 18, 2014 at 6:02 pm in reply to: Need to Implement Check all in JqxDropDownlist. Need to Implement Check all in JqxDropDownlist. #64425 -
AuthorPosts