In our project, we extend OnDemandList, Selection and Keyboard to render grid from left to right (instead of top to bottom). We used renderRow to render dgrid-row-elements next to each other. CSS of container div allows grid elements to display as Carousel.
But, seems, OnDemandList is written keeping in mind the conventional top-to-bottom grid. As a result, lazy loading fails and all dgrid-row-elements are created in the startup itself.
I made an attempt to write a new OnDemandHorizontalList which works on the same logic as OnDemandList with the following differences:
offsetTop in OnDemandList is referenced as offsetLeft
offsetHeight in OnDemandList is referenced as offsetWidth
Post the change, I do get minRowsPerPage number of dgrid-row-elements at the start, but my preloadNode top does not get updated with correct offsetHeight, offsetLeft and offsetTop values resulting in processScroll thinking that all preload nodes are not currently connected.
Have attached my version of OnDemandHorizontalList (seems, JS file attachment is not allowed, can send the same by mail if required)
In our project, we extend OnDemandList, Selection and Keyboard to render grid from left to right (instead of top to bottom). We used renderRow to render dgrid-row-elements next to each other. CSS of container div allows grid elements to display as Carousel.
But, seems, OnDemandList is written keeping in mind the conventional top-to-bottom grid. As a result, lazy loading fails and all dgrid-row-elements are created in the startup itself.
I made an attempt to write a new OnDemandHorizontalList which works on the same logic as OnDemandList with the following differences:
offsetTop in OnDemandList is referenced as offsetLeft offsetHeight in OnDemandList is referenced as offsetWidth
Post the change, I do get minRowsPerPage number of dgrid-row-elements at the start, but my preloadNode top does not get updated with correct offsetHeight, offsetLeft and offsetTop values resulting in processScroll thinking that all preload nodes are not currently connected.
Have attached my version of OnDemandHorizontalList (seems, JS file attachment is not allowed, can send the same by mail if required)
Would appreciate any help.
Thanks, Joshi