Tabulator list items disappear when scrolling; virtualDomBuffer issue?











up vote
0
down vote

favorite












Tabulator v3.5.3

Electron Desktop app (OSX & PC)



With 300+ items, Tabulator is exhibiting odd behavior; most serious is that items are disappearing. Other symptoms include the scroll "thumb" size and position becoming erratic and inconsistent (e.g thumb position not reflecting scroll position in overall list).



I'm wondering if I set the virtualDomBuffer too high or too low. The behavior is occurring when it is set to 300. Only 13-15 items will ever appear on-screen at once. I am setting the height of the Tabulator instance thus: height: "84vh". Is that a valid CSS value that Tabulator can handle?



I've tried setting virtualDomBuffer to 1000 but maybe that is the wrong way to handle this?



(I know there is a newer version of Tabulator but I am needing to support and existing app and don't want to introduce a big change unless I have to.



enter image description here - - - -
enter image description here





Tabulator instance initialization



  eventList = $("#event-list");
eventList.tabulator({
height: "84vh",
virtualDomBuffer: 300,
layout: "fitColumns",
resizableColumns: false,
selectable: 1,
responsiveLayout: "hide",
placeholder: "No Events",
columns: [
{
title: "Events",
field: "startDate",
formatter: eventListRowFormatter,
variableHeight: true,
headerSort: false
},
{ formatter: deleteIcon, width: 5, align: "center", cellClick: deleteFromEventList }
],
rowClick: function (e, row) {
// prevent deselecting clicked row
var selectedRows = eventList.tabulator("getSelectedRows");
if (selectedRows.length == 0) {
eventList.tabulator("selectRow", row);
} else if (isEventDirty == false) {
lastEventSelected = row;
setActiveEvent(row.row.data)
} else {
eventList.tabulator("deselectRow");
eventList.tabulator("selectRow", lastEventSelected);
}
},
rowDeselected: function (row) {
if (isEventDirty == true) {
lastEventSelected = row;
}
},
ajaxLoader: false
});




Column formatter



function eventListRowFormatter(cell) {
var data = cell.cell.row.data

if (data.eventTitle == "") {
return " - " + "<br>" + "<small>" + data.startDate + "</small>"
} else {

return data.eventTitle + "<br>" + "<small>" + data.startDate + "</small>"
}
}









share|improve this question


























    up vote
    0
    down vote

    favorite












    Tabulator v3.5.3

    Electron Desktop app (OSX & PC)



    With 300+ items, Tabulator is exhibiting odd behavior; most serious is that items are disappearing. Other symptoms include the scroll "thumb" size and position becoming erratic and inconsistent (e.g thumb position not reflecting scroll position in overall list).



    I'm wondering if I set the virtualDomBuffer too high or too low. The behavior is occurring when it is set to 300. Only 13-15 items will ever appear on-screen at once. I am setting the height of the Tabulator instance thus: height: "84vh". Is that a valid CSS value that Tabulator can handle?



    I've tried setting virtualDomBuffer to 1000 but maybe that is the wrong way to handle this?



    (I know there is a newer version of Tabulator but I am needing to support and existing app and don't want to introduce a big change unless I have to.



    enter image description here - - - -
    enter image description here





    Tabulator instance initialization



      eventList = $("#event-list");
    eventList.tabulator({
    height: "84vh",
    virtualDomBuffer: 300,
    layout: "fitColumns",
    resizableColumns: false,
    selectable: 1,
    responsiveLayout: "hide",
    placeholder: "No Events",
    columns: [
    {
    title: "Events",
    field: "startDate",
    formatter: eventListRowFormatter,
    variableHeight: true,
    headerSort: false
    },
    { formatter: deleteIcon, width: 5, align: "center", cellClick: deleteFromEventList }
    ],
    rowClick: function (e, row) {
    // prevent deselecting clicked row
    var selectedRows = eventList.tabulator("getSelectedRows");
    if (selectedRows.length == 0) {
    eventList.tabulator("selectRow", row);
    } else if (isEventDirty == false) {
    lastEventSelected = row;
    setActiveEvent(row.row.data)
    } else {
    eventList.tabulator("deselectRow");
    eventList.tabulator("selectRow", lastEventSelected);
    }
    },
    rowDeselected: function (row) {
    if (isEventDirty == true) {
    lastEventSelected = row;
    }
    },
    ajaxLoader: false
    });




    Column formatter



    function eventListRowFormatter(cell) {
    var data = cell.cell.row.data

    if (data.eventTitle == "") {
    return " - " + "<br>" + "<small>" + data.startDate + "</small>"
    } else {

    return data.eventTitle + "<br>" + "<small>" + data.startDate + "</small>"
    }
    }









    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Tabulator v3.5.3

      Electron Desktop app (OSX & PC)



      With 300+ items, Tabulator is exhibiting odd behavior; most serious is that items are disappearing. Other symptoms include the scroll "thumb" size and position becoming erratic and inconsistent (e.g thumb position not reflecting scroll position in overall list).



      I'm wondering if I set the virtualDomBuffer too high or too low. The behavior is occurring when it is set to 300. Only 13-15 items will ever appear on-screen at once. I am setting the height of the Tabulator instance thus: height: "84vh". Is that a valid CSS value that Tabulator can handle?



      I've tried setting virtualDomBuffer to 1000 but maybe that is the wrong way to handle this?



      (I know there is a newer version of Tabulator but I am needing to support and existing app and don't want to introduce a big change unless I have to.



      enter image description here - - - -
      enter image description here





      Tabulator instance initialization



        eventList = $("#event-list");
      eventList.tabulator({
      height: "84vh",
      virtualDomBuffer: 300,
      layout: "fitColumns",
      resizableColumns: false,
      selectable: 1,
      responsiveLayout: "hide",
      placeholder: "No Events",
      columns: [
      {
      title: "Events",
      field: "startDate",
      formatter: eventListRowFormatter,
      variableHeight: true,
      headerSort: false
      },
      { formatter: deleteIcon, width: 5, align: "center", cellClick: deleteFromEventList }
      ],
      rowClick: function (e, row) {
      // prevent deselecting clicked row
      var selectedRows = eventList.tabulator("getSelectedRows");
      if (selectedRows.length == 0) {
      eventList.tabulator("selectRow", row);
      } else if (isEventDirty == false) {
      lastEventSelected = row;
      setActiveEvent(row.row.data)
      } else {
      eventList.tabulator("deselectRow");
      eventList.tabulator("selectRow", lastEventSelected);
      }
      },
      rowDeselected: function (row) {
      if (isEventDirty == true) {
      lastEventSelected = row;
      }
      },
      ajaxLoader: false
      });




      Column formatter



      function eventListRowFormatter(cell) {
      var data = cell.cell.row.data

      if (data.eventTitle == "") {
      return " - " + "<br>" + "<small>" + data.startDate + "</small>"
      } else {

      return data.eventTitle + "<br>" + "<small>" + data.startDate + "</small>"
      }
      }









      share|improve this question













      Tabulator v3.5.3

      Electron Desktop app (OSX & PC)



      With 300+ items, Tabulator is exhibiting odd behavior; most serious is that items are disappearing. Other symptoms include the scroll "thumb" size and position becoming erratic and inconsistent (e.g thumb position not reflecting scroll position in overall list).



      I'm wondering if I set the virtualDomBuffer too high or too low. The behavior is occurring when it is set to 300. Only 13-15 items will ever appear on-screen at once. I am setting the height of the Tabulator instance thus: height: "84vh". Is that a valid CSS value that Tabulator can handle?



      I've tried setting virtualDomBuffer to 1000 but maybe that is the wrong way to handle this?



      (I know there is a newer version of Tabulator but I am needing to support and existing app and don't want to introduce a big change unless I have to.



      enter image description here - - - -
      enter image description here





      Tabulator instance initialization



        eventList = $("#event-list");
      eventList.tabulator({
      height: "84vh",
      virtualDomBuffer: 300,
      layout: "fitColumns",
      resizableColumns: false,
      selectable: 1,
      responsiveLayout: "hide",
      placeholder: "No Events",
      columns: [
      {
      title: "Events",
      field: "startDate",
      formatter: eventListRowFormatter,
      variableHeight: true,
      headerSort: false
      },
      { formatter: deleteIcon, width: 5, align: "center", cellClick: deleteFromEventList }
      ],
      rowClick: function (e, row) {
      // prevent deselecting clicked row
      var selectedRows = eventList.tabulator("getSelectedRows");
      if (selectedRows.length == 0) {
      eventList.tabulator("selectRow", row);
      } else if (isEventDirty == false) {
      lastEventSelected = row;
      setActiveEvent(row.row.data)
      } else {
      eventList.tabulator("deselectRow");
      eventList.tabulator("selectRow", lastEventSelected);
      }
      },
      rowDeselected: function (row) {
      if (isEventDirty == true) {
      lastEventSelected = row;
      }
      },
      ajaxLoader: false
      });




      Column formatter



      function eventListRowFormatter(cell) {
      var data = cell.cell.row.data

      if (data.eventTitle == "") {
      return " - " + "<br>" + "<small>" + data.startDate + "</small>"
      } else {

      return data.eventTitle + "<br>" + "<small>" + data.startDate + "</small>"
      }
      }






      javascript tabulator






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 19 at 20:10









      No Grabbing

      9,1061158123




      9,1061158123
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          There were some rendering glitches in version 3.5, i would suggest updating to the 4.1 release






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53381922%2ftabulator-list-items-disappear-when-scrolling-virtualdombuffer-issue%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            There were some rendering glitches in version 3.5, i would suggest updating to the 4.1 release






            share|improve this answer

























              up vote
              0
              down vote













              There were some rendering glitches in version 3.5, i would suggest updating to the 4.1 release






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                There were some rendering glitches in version 3.5, i would suggest updating to the 4.1 release






                share|improve this answer












                There were some rendering glitches in version 3.5, i would suggest updating to the 4.1 release







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 22 at 21:47









                Oli Folkerd

                96411115




                96411115






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53381922%2ftabulator-list-items-disappear-when-scrolling-virtualdombuffer-issue%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Wiesbaden

                    Marschland

                    Dieringhausen