jQWidgets Forums

jQuery UI Widgets Forums Grid JqxGrid Checkbox selection mode problem when filtering

This topic contains 4 replies, has 2 voices, and was last updated by  smr 11 years, 2 months ago.

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

  • smr
    Participant

    Hi. I am using jqxgrid 3.2.2 version.
    I have a problem with checkbox selection mode my problem is that ;
    When normally i check a checkbox it selects the row and works fine,but when i filter a colum and then try to select a row with checkbox it does’n work. Here is my code :

     $("#jqxgrid2").jqxGrid({
    		    autoheight: false,
    		    autoshowfiltericon: true,
    		    columnsresize: true,
    		    columnsreorder: true,
    		    enabletooltips: true,
    		    editable: true,
    		    filterable: true,
    		    groupable: true,
    		    pageable: true,
    		    pagesizeoptions: ['10', '20', '30', '50', '100', '250', '500', '1000'],
    		    pagesize: 20,
    	  	    sortable: true,
    		    showfiltermenuitems: true,
    		    selectionmode: 'checkbox',
    		    showfilterrow: true,
    		    virtualmode: true,
    		    width: 750,
    		    height: 450,
    		    Theme: 'bootstrap',
    		    source: dataadapter,
                        rendergridrows: function (obj) {
    		        return obj.data;
    		    },
    		    columns: R_KOLONLAR,
                        ready: function () {
    		      
    		    }
    		});

    Peter Stoev
    Keymaster

    Hi smr,

    The solution is:

    1. Remove
    rendergridrows: function (obj) {
    return obj.data;
    },
    2. Remove virtualmode

    Best Regards,
    Peter Stoev

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


    smr
    Participant

    hi i modified my code as you wish,but it doesnt solve the problem.
    I solve the problem by changing the selection mode to the multiplerows this works fine when filtering too.
    Thanks for your interest


    Peter Stoev
    Keymaster

    Hi smr,

    Don’t know how to reproduce your problem, but with jQWidgets 3.2.2, the Checkbox Selection works even if a filter is applied. Example: http://jsfiddle.net/XHa7w/

    Best Regards,
    Peter Stoev

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


    smr
    Participant

    Hi my problem was because of filter callback function at my dataadapter object

     filter: function () {
                  // update the grid and send a request to the server.
                  
              },

    removing this callback function solved my problem.
    Again thanks for your interest Peter

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

You must be logged in to reply to this topic.