简体   繁体   中英

Telerik Kendo grid virtual scrolling and Excel export

When I use virtual scrolling for performances issues, exporting to excel does not retrieve all data but only rendered data.

I can't find anything on teleric or SO forums, any idea how to fix that ?

.Scrollable(scrollable => scrollable.Virtual(true))
.PageSize(20)

Also, because of custom toolbar, i have to use this syntax for excel export :

<a class="k-button k-button-icontext k-grid-excel">
      <span class="k-icon k-i-excel"></span>Excel
</a>

Thank you.

I found out how to get all data, even with virtual scrolling and custom toolbar syntax.

Just add the following at kendo grid initialization :

.Excel(excel =>
{
    excel.AllPages(true);
})

Good luck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM