jQWidgets Forums

Forum Replies Created

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

  • ajayetw1987
    Participant

    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.


    ajayetw1987
    Participant

    Hi 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.


    ajayetw1987
    Participant

    Hi Sir/Mam,

    I need check all like this demo:
    http://jsfiddle.net/Dimitar_jQWidgets/axujkwrv/

    Thanks with regards,
    Rinku


    ajayetw1987
    Participant

    Hi Sir/Mam,

    I need check all like this demo:
    http://jsfiddle.net/Dimitar_jQWidgets/axujkwrv/

    Thanks with regards,
    Rinku


    ajayetw1987
    Participant

    Hi Sir/Mam,

    I need check all like this:

    Thanks with regards,
    Rinku

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