jQWidgets Forums
jQuery UI Widgets › Forums › Grid › JqxGrid Checkbox selection mode problem when filtering
Tagged: checkbox, checkbox selection mode, jqxgrid, selection
This topic contains 4 replies, has 2 voices, and was last updated by smr 11 years, 2 months ago.
-
Author
-
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 () { } });
Hi smr,
The solution is:
1. Remove
rendergridrows: function (obj) {
return obj.data;
},
2. Remove virtualmodeBest Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/hi i modified my code as you wish,but it doesnt solve the problem.
I solve the problem by changing the selection mode to themultiplerows
this works fine when filtering too.
Thanks for your interestHi 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 StoevjQWidgets Team
http://www.jqwidgets.com/Hi my problem was because of
filter
callback function at mydataadapter
objectfilter: function () { // update the grid and send a request to the server. },
removing this callback function solved my problem.
Again thanks for your interest Peter -
AuthorPosts
You must be logged in to reply to this topic.