searchPanes - column contains a value that appears only once - error when changing that value
searchPanes - column contains a value that appears only once - error when changing that value
Link to test case:
https://www.oakcreekdev.com/datatableseditor-test/?view=company-list
Debugger code (debug.datatables.net):
I got an error when using the bookmarklet (I don't think it submitted successfully)
Uncaught TypeError: Cannot read properties of undefined (reading 'sVersion')
at gatherData (DT_Debug.js?rand=1697614014062:512:36)
at DT_Debug.js?rand=1697614014062:497:13
Error messages shown:
datatables.min.js?ver=1.0.1:45 Uncaught TypeError: Cannot set properties of undefined (setting '_aData')
at B.<anonymous> (datatables.min.js?ver=1.0.1:45:59804)
at B.data (datatables.min.js?ver=1.0.1:45:53602)
at s.updateRows (datatables.min.js?ver=1.0.1:225:33789)
at k._remakeSelections (datatables.min.js?ver=1.0.1:225:54047)
at k._updateSelectionList (datatables.min.js?ver=1.0.1:225:53388)
at k._initSelectionListeners (datatables.min.js?ver=1.0.1:225:51470)
at M.rebuild (datatables.min.js?ver=1.0.1:225:40387)
at B.<anonymous> (datatables.min.js?ver=1.0.1:225:55514)
at B.iterator (datatables.min.js?ver=1.0.1:45:52119)
at B.<anonymous> (datatables.min.js?ver=1.0.1:225:55454)
Description of problem:
On the test page.
Scroll down almost all the way to the bottom and edit the row with City = Show Low
Change "Show Low" to "Show Low2"
The error only happens when using searchPanes
And it only happens when the value being changed is the only occurrence of that value in its column
Answers
Additional Information:
I noticed that it only happens when using:
searchPanes: {
viewTotal: true
}
Also, I get the same error if I select and delete multiple rows in one shot (only if one of the rows happens to contain a value which is unique to its column)
More Info:
I also noticed that it only happens when using:
serverSide: false
Is serverSide required when using Editor with searchPanes and viewTotal?