Usage of Select2
eynarhaji opened this issue · 3 comments
Dear,
I cannot use select2 filter option with your parse plugin, because datatables cannot fetch data of columns. I am using Yadcf for filtering. How can I fetch data from table for Yadcf Select2 filter?
Hi @eynarhaji, I am not familiar with select2 or Yadcf. Can you post the entire GET/POST request being sent to the parser? Also, I am not sure what you mean by "fetch data of columns".
Post request is same as Datatables standart Post request. However to filter Yadcf plugin requires a returned json like Yadcf_data_{column_id}.
Examples:
//"yadcf_data_0":["KHTML","Webkit","Trident","Misc","Other browsers","Tasman","Presto","Gecko"],
//"yadcf_data_1":["Nintendo DS browser","Netscape Browser 8","All others","Lynx","Mozilla 1.6","Mozilla 1.5","Mozilla 1.8","AOL browser (AOL desktop)","Mozilla 1.7","Mozilla 1.0","NetFront 3.1","NetFront 3.4","Mozilla 1.2","Mozilla 1.1","Mozilla 1.4","Mozilla 1.3","iPod Touch / iPhone","Camino 1.0","Firefox 1.0","Safari 1.3","Safari 1.2","Safari 2.0","Internet Explorer 5.5","Firefox 1.5","Safari 3.0","Internet Explorer 5.0","Camino 1.5","Internet Explorer 5.1","Internet Explorer 5.2","Konqureror 3.3","Opera 7.0","Konqureror 3.5","Internet Explorer 4.0","Netscape Navigator 9","Konqureror 3.1","S60","Opera 8.0","Internet Explorer 4.5","Firefox 2.0","Opera 8.5","IE Mobile","Netscape 7.2","Firefox 3.0","Opera for Wii","Opera 7.5","Internet Explorer 6","Internet Explorer 7","Opera 9.0","Seamonkey 1.1","Epiphany 2.20","Opera 9.5","PSP browser","Opera 9.2","Links","Nokia N800","OmniWeb 5.5","Dillo 0.8"]
For more information about Plugin, http://yadcf-showcase.appspot.com/server_side_source.html
As far as I can tell, this returned JSON is for populating the dropdowns and not for actual table data. In general, the parser is only intended to support the input and output expected by DataTables. Any custom plugin functionality can be done in your own personal fork of the project.