preSelect not preSelecting (columnDef: show, preSelect | data: array) [Example included]
preSelect not preSelecting (columnDef: show, preSelect | data: array) [Example included]
SyncOrSwim
Posts: 2Questions: 1Answers: 0
in SearchPanes
Link to test case: http://live.datatables.net/varojuja/1/edit?html,js,output
Debugger code (debug.datatables.net): N/A
Error messages shown: NA
Description of problem: The 'Active' option should preselect, but it does not.
Answers
Hi @SyncOrSwim ,
You are initialising your table before the data is present. When SearchPanes tries to preselect the value it is not present so it cannot select it. This example shows how it should be done.
Thanks,
Sandy
Okay, that helped. I am occasionally refreshing the data but calling destroy and re-initializing does seem to work.
@SyncOrSwim - could you update Sandy's test case to demonstrate that, please, and we'll take a look,
Colin