Yadcf with Select2 puts empty selected option -


first of all, lot amazing plugin! have datatable server-side processing. when choose 1 option dropdown, got 2 selected options: 1 choose, , empty. mean got this:

<ul class="select2-selection__rendered">   <li class="select2-selection__choice" title=""></li>   <li class="select2-selection__choice" title="option1"></li>   <li class="select2-search select2-search--inline"></li> </ul> 

it makes wrong sql query (in operator got '|option1'). can correct query php script, won't remove empty selected option header of table.

would appreciated help.

you welcome,

looks using multi select filter on column, , thats why yadcf sends strings | (or) server.

on server side have split of string array/list of string , construct proper sql query.

split in java

split in php(see code sample in bottom

p.s i'm author of yadcf


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

html - Outlook 2010 Anchor (url/address/link) -