问题
Using coded-ui-tests to automate a screen which is using wijmo grid with scroll.
The problem is not able to record all the cells, as the cells which appear after scroll does not render in DOM, this is evident from Inspect element feature of browser.
How can I catch the cells?
Edited: The issue here is that only the cells which are visible is getting rendered in dom as we can see, while the part of the grid which is on right i.e. which will appear after scrolling is not getting rendered.
- The red line shows only the visible cells are rendered not the ones which are towards right of the grid.
- The yellow highlighted div shows the start of new row (which should not be in the actual case until all the cells of above row are not rendered).
回答1:
For record, Wijmo Flexgrid has inbuilt virtualizatio and therefore, only visible cells are rendered in the DOM. This is the design behavior of the control in order to provide good performance. Else, if there are 10000 records in the grid and each is rendered then it would take a lot of time. You can display all the records by not setting the height of FlexGrid.
来源:https://stackoverflow.com/questions/29626780/wizmo5-flexgrid-not-rendering-completely-in-browser-when-seeing-through-develope