jQWidgets Forums

jQuery UI Widgets Forums Grid jqxGrid virtualmode and pagging has some multi row selection issue

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 10 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • senthilkumar
    Participant

    jqxGrid virtualmode and pagging has some multi row selection bugs, When multi row selection on same page it gives selected records properly, if selected some records from page 1 and move to page 2 select some other records, when call getallselectedrecords function in page 2, all page 1 records shows as undefined page 2 records displayed properly, let me know the issue

    Code

    source : dataAdapter,
    theme : ‘energyblue’,
    columnsresize : true,
    enabletooltips: true,
    groupable: true,
    sortable: true,
    filterable: true,
    pageable: true,
    autoheight: true,
    columnsresize: true,
    selectionmode: ‘multiplerowsextended’,
    editable: false,
    altrows: true,
    virtualmode: true,
    rendergridrows: function(obj)
    {
    return obj.data;
    },

    Click event :

    function getallselectedrecords {

    var rowIndexes = $(‘#selection_grid’).jqxGrid(‘getselectedrowindexes’);
    for (var i = 0; i < rowIndexes.length; i++) {

    var obj= $(“#selection_grid”).jqxGrid(‘getrowdata’,rowIndexes[i]);
    alert(obj.fault_id);
    };
    });


    Dimitar
    Participant

    Hello senthilkumar,

    In virtual mode, only the currently displayed rows are loaded. That is why you cannot call methods for rows on other pages. We suggest you call clearselection on the pagechanged event.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.