Datatable Keytable throws an error if cell is unavailable.

Datatable Keytable throws an error if cell is unavailable.

ashwinrajgashwinrajg Posts: 2Questions: 1Answers: 1
edited March 2018 in Free community support

Hi, I am using Datatable with Keytable in a dynamic page.

Given: I am in a dynamic page choosing a cell which is stored in local storage.
When: When I am loading different content on the datatable and the previously selected cell(position) is unavailable.
Then: I am getting an error in "Uncaught TypeError: Cannot read property 'column' of undefined" at KeyTable._focus

This question has an accepted answers - jump to answer

Answers

  • ashwinrajgashwinrajg Posts: 2Questions: 1Answers: 1
    Answer ✓

    Resolved:
    If you are using KeyTable along with statesave, you have to modify the storage key specific to each dynamic page. Thereby resolving the issue.

    Also, using sessionStorage is preferable.

This discussion has been closed.