0

I am looking for multiselect filter in jqgrid and I found the following demo from Oleg.

Demo

When I use jqgrid 4.6.0 js version multiselect filter is working fine but when I use jqgrid 4.8.2 js version, mutliselct filter was displayed with one option selected, When I check the code, I found out attribute 'multiple="multiple"' is not appending to select to filter toolbar.

Can anyone help me in this

user1268130
  • 885
  • 3
  • 14
  • 31
  • The below solution worked for me. http://stackoverflow.com/questions/27226590/jqgrid-multiselect-filter-not-able-to-filter-multiple-options – SK. Apr 15 '16 at 18:05

1 Answers1

0

I remind me about the bug. It was fixed in free jqGrid. Sorry, but I could not find the exact reference to the bug fix. You can examine the demo from the answer. I recommend you to try to use free jqGrid 4.9-RC1. I will publish release of free jqGrid 4.9 probably at the weekend. To test free jqGrid you can just temporary replaces the URLs of jqGrid files (css and js) which you use. See the wiki article for details.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798
  • Thanks alot :) It saved my time. :) – user1268130 Jun 11 '15 at 07:15
  • @user1268130: It seems that I do found [the old answer](http://stackoverflow.com/a/26949859/315935) which described very close problem. It could be the problem with integration of multiselect plugin. You can examine the code and decide yourself whether it's the same problem which you have or another one. – Oleg Jun 11 '15 at 07:20
  • In the code which you have given has searchoptions: { sopt: ["eq", "ne"], value: "true:Yes;false:No", attr: {multiple: "multiple", size: 3}, dataInit: dataInitMultiselect } But attr multiple: multiple is not displaying when it come to display of jqgrid – user1268130 Jun 11 '15 at 07:53
  • @user1268130: Sorry, but I can't follow you. You can see that one can select **multiple** items in multiselect plugin and jqGrid filter correctly based on the choice. If you would **remove** multiselect plugin then you will see the standard `multiple: multiple` which is not comfortable. The goal of multiselect plugin is converting the standard `...` hidden – Oleg Jun 11 '15 at 07:57
  • Even if I removed the multiselect plugin, it will display as single select in the filter toolbar. – user1268130 Jun 11 '15 at 08:01
  • @user1268130: Sorry, but I suppose that we speak about different things. I commented two likes in the demo which I referenced and [the resulting code](http://www.ok-soft-gmbh.com/jqGrid/SimpleLocalGridWithSearchingToolbarMultilpe1__48_.htm) uses only ` – Oleg Jun 11 '15 at 08:09