DeepWorks Studios Blazor Component Library

Demo user Administrator ยท Blazor Server Library 20261206222504-6e8ff32.dirty

DwsVirtualize

DwsVirtualize renders only the items that are visible, plus a few extra (the overscan). Give it a size (Height, MaxHeight, Width) or set UseScrollContainer and it renders its own accessible scroll container with scroll events, position restoration and ScrollToIndexAsync. Without that it stays transparent - no element of its own - so it can sit inside a table body or a flex list.

API Reference - DwsVirtualize API Reference - context & event types

Tables & transparent mode

Without a size DwsVirtualize renders no element, so it can live directly in a tbody. SpacerElement='tr' keeps the spacers valid table rows, and ItemContent passes the absolute index for aria-rowindex. The surrounding div is the scroll container.

# Product Category Price
1 Hardware item 1 Hardware $4.99
2 Software item 2 Software $41.99
3 Services item 3 Services $78.99
4 Accessories item 4 Accessories $115.99
5 Licences item 5 Licences $152.99
6 Hardware item 6 Hardware $189.99
7 Software item 7 Software $226.99
8 Services item 8 Services $263.99
9 Accessories item 9 Accessories $300.99
10 Licences item 10 Licences $337.99
11 Hardware item 11 Hardware $374.99
12 Software item 12 Software $411.99
13 Services item 13 Services $448.99
14 Accessories item 14 Accessories $485.99
15 Licences item 15 Licences $22.99
16 Hardware item 16 Hardware $59.99
17 Software item 17 Software $96.99
18 Services item 18 Services $133.99
19 Accessories item 19 Accessories $170.99
20 Licences item 20 Licences $207.99
21 Hardware item 21 Hardware $244.99
22 Software item 22 Software $281.99
23 Services item 23 Services $318.99
24 Accessories item 24 Accessories $355.99
25 Licences item 25 Licences $392.99
26 Hardware item 26 Hardware $429.99
27 Software item 27 Software $466.99
28 Services item 28 Services $503.99
29 Accessories item 29 Accessories $40.99
30 Licences item 30 Licences $77.99
31 Hardware item 31 Hardware $114.99
32 Software item 32 Software $151.99
33 Services item 33 Services $188.99
34 Accessories item 34 Accessories $225.99
35 Licences item 35 Licences $262.99
36 Hardware item 36 Hardware $299.99
37 Software item 37 Software $336.99
38 Services item 38 Services $373.99
39 Accessories item 39 Accessories $410.99
40 Licences item 40 Licences $447.99
41 Hardware item 41 Hardware $484.99
42 Software item 42 Software $21.99
43 Services item 43 Services $58.99
44 Accessories item 44 Accessories $95.99
45 Licences item 45 Licences $132.99
46 Hardware item 46 Hardware $169.99
47 Software item 47 Software $206.99
48 Services item 48 Services $243.99
49 Accessories item 49 Accessories $280.99
50 Licences item 50 Licences $317.99
51 Hardware item 51 Hardware $354.99
52 Software item 52 Software $391.99
53 Services item 53 Services $428.99
54 Accessories item 54 Accessories $465.99
55 Licences item 55 Licences $502.99
56 Hardware item 56 Hardware $39.99
57 Software item 57 Software $76.99
58 Services item 58 Services $113.99
59 Accessories item 59 Accessories $150.99
60 Licences item 60 Licences $187.99
61 Hardware item 61 Hardware $224.99
62 Software item 62 Software $261.99
63 Services item 63 Services $298.99
64 Accessories item 64 Accessories $335.99
65 Licences item 65 Licences $372.99
66 Hardware item 66 Hardware $409.99
67 Software item 67 Software $446.99
68 Services item 68 Services $483.99
69 Accessories item 69 Accessories $20.99
70 Licences item 70 Licences $57.99
71 Hardware item 71 Hardware $94.99
72 Software item 72 Software $131.99
73 Services item 73 Services $168.99
74 Accessories item 74 Accessories $205.99
75 Licences item 75 Licences $242.99
76 Hardware item 76 Hardware $279.99
77 Software item 77 Software $316.99
78 Services item 78 Services $353.99
79 Accessories item 79 Accessories $390.99
80 Licences item 80 Licences $427.99
81 Hardware item 81 Hardware $464.99
82 Software item 82 Software $501.99
83 Services item 83 Services $38.99
84 Accessories item 84 Accessories $75.99
85 Licences item 85 Licences $112.99
86 Hardware item 86 Hardware $149.99
87 Software item 87 Software $186.99
88 Services item 88 Services $223.99
89 Accessories item 89 Accessories $260.99
90 Licences item 90 Licences $297.99
91 Hardware item 91 Hardware $334.99
92 Software item 92 Software $371.99
93 Services item 93 Services $408.99
94 Accessories item 94 Accessories $445.99
95 Licences item 95 Licences $482.99
96 Hardware item 96 Hardware $19.99
97 Software item 97 Software $56.99
98 Services item 98 Services $93.99
99 Accessories item 99 Accessories $130.99
100 Licences item 100 Licences $167.99
101 Hardware item 101 Hardware $204.99
102 Software item 102 Software $241.99
103 Services item 103 Services $278.99
104 Accessories item 104 Accessories $315.99
105 Licences item 105 Licences $352.99
106 Hardware item 106 Hardware $389.99
107 Software item 107 Software $426.99
108 Services item 108 Services $463.99
109 Accessories item 109 Accessories $500.99
110 Licences item 110 Licences $37.99
111 Hardware item 111 Hardware $74.99
112 Software item 112 Software $111.99
113 Services item 113 Services $148.99
114 Accessories item 114 Accessories $185.99
115 Licences item 115 Licences $222.99
116 Hardware item 116 Hardware $259.99
117 Software item 117 Software $296.99
118 Services item 118 Services $333.99
119 Accessories item 119 Accessories $370.99
120 Licences item 120 Licences $407.99
121 Hardware item 121 Hardware $444.99
122 Software item 122 Software $481.99
123 Services item 123 Services $18.99
124 Accessories item 124 Accessories $55.99
125 Licences item 125 Licences $92.99
126 Hardware item 126 Hardware $129.99
127 Software item 127 Software $166.99
128 Services item 128 Services $203.99
129 Accessories item 129 Accessories $240.99
130 Licences item 130 Licences $277.99
131 Hardware item 131 Hardware $314.99
132 Software item 132 Software $351.99
133 Services item 133 Services $388.99
134 Accessories item 134 Accessories $425.99
135 Licences item 135 Licences $462.99
136 Hardware item 136 Hardware $499.99
137 Software item 137 Software $36.99
138 Services item 138 Services $73.99
139 Accessories item 139 Accessories $110.99
140 Licences item 140 Licences $147.99
141 Hardware item 141 Hardware $184.99
142 Software item 142 Software $221.99
143 Services item 143 Services $258.99
144 Accessories item 144 Accessories $295.99
145 Licences item 145 Licences $332.99
146 Hardware item 146 Hardware $369.99
147 Software item 147 Software $406.99
148 Services item 148 Services $443.99
149 Accessories item 149 Accessories $480.99
150 Licences item 150 Licences $17.99
151 Hardware item 151 Hardware $54.99
152 Software item 152 Software $91.99
153 Services item 153 Services $128.99
154 Accessories item 154 Accessories $165.99
155 Licences item 155 Licences $202.99
156 Hardware item 156 Hardware $239.99
157 Software item 157 Software $276.99
158 Services item 158 Services $313.99
159 Accessories item 159 Accessories $350.99
160 Licences item 160 Licences $387.99
161 Hardware item 161 Hardware $424.99
162 Software item 162 Software $461.99
163 Services item 163 Services $498.99
164 Accessories item 164 Accessories $35.99
165 Licences item 165 Licences $72.99
166 Hardware item 166 Hardware $109.99
167 Software item 167 Software $146.99
168 Services item 168 Services $183.99
169 Accessories item 169 Accessories $220.99
170 Licences item 170 Licences $257.99
171 Hardware item 171 Hardware $294.99
172 Software item 172 Software $331.99
173 Services item 173 Services $368.99
174 Accessories item 174 Accessories $405.99
175 Licences item 175 Licences $442.99
176 Hardware item 176 Hardware $479.99
177 Software item 177 Software $16.99
178 Services item 178 Services $53.99
179 Accessories item 179 Accessories $90.99
180 Licences item 180 Licences $127.99
181 Hardware item 181 Hardware $164.99
182 Software item 182 Software $201.99
183 Services item 183 Services $238.99
184 Accessories item 184 Accessories $275.99
185 Licences item 185 Licences $312.99
186 Hardware item 186 Hardware $349.99
187 Software item 187 Software $386.99
188 Services item 188 Services $423.99
189 Accessories item 189 Accessories $460.99
190 Licences item 190 Licences $497.99
191 Hardware item 191 Hardware $34.99
192 Software item 192 Software $71.99
193 Services item 193 Services $108.99
194 Accessories item 194 Accessories $145.99
195 Licences item 195 Licences $182.99
196 Hardware item 196 Hardware $219.99
197 Software item 197 Software $256.99
198 Services item 198 Services $293.99
199 Accessories item 199 Accessories $330.99
200 Licences item 200 Licences $367.99
201 Hardware item 201 Hardware $404.99
202 Software item 202 Software $441.99
203 Services item 203 Services $478.99
204 Accessories item 204 Accessories $15.99
205 Licences item 205 Licences $52.99
206 Hardware item 206 Hardware $89.99
207 Software item 207 Software $126.99
208 Services item 208 Services $163.99
209 Accessories item 209 Accessories $200.99
210 Licences item 210 Licences $237.99
211 Hardware item 211 Hardware $274.99
212 Software item 212 Software $311.99
213 Services item 213 Services $348.99
214 Accessories item 214 Accessories $385.99
215 Licences item 215 Licences $422.99
216 Hardware item 216 Hardware $459.99
217 Software item 217 Software $496.99
218 Services item 218 Services $33.99
219 Accessories item 219 Accessories $70.99
220 Licences item 220 Licences $107.99
221 Hardware item 221 Hardware $144.99
222 Software item 222 Software $181.99
223 Services item 223 Services $218.99
224 Accessories item 224 Accessories $255.99
225 Licences item 225 Licences $292.99
226 Hardware item 226 Hardware $329.99
227 Software item 227 Software $366.99
228 Services item 228 Services $403.99
229 Accessories item 229 Accessories $440.99
230 Licences item 230 Licences $477.99
231 Hardware item 231 Hardware $14.99
232 Software item 232 Software $51.99
233 Services item 233 Services $88.99
234 Accessories item 234 Accessories $125.99
235 Licences item 235 Licences $162.99
236 Hardware item 236 Hardware $199.99
237 Software item 237 Software $236.99
238 Services item 238 Services $273.99
239 Accessories item 239 Accessories $310.99
240 Licences item 240 Licences $347.99
241 Hardware item 241 Hardware $384.99
242 Software item 242 Software $421.99
243 Services item 243 Services $458.99
244 Accessories item 244 Accessories $495.99
245 Licences item 245 Licences $32.99
246 Hardware item 246 Hardware $69.99
247 Software item 247 Software $106.99
248 Services item 248 Services $143.99
249 Accessories item 249 Accessories $180.99
250 Licences item 250 Licences $217.99
251 Hardware item 251 Hardware $254.99
252 Software item 252 Software $291.99
253 Services item 253 Services $328.99
254 Accessories item 254 Accessories $365.99
255 Licences item 255 Licences $402.99
256 Hardware item 256 Hardware $439.99
257 Software item 257 Software $476.99
258 Services item 258 Services $13.99
259 Accessories item 259 Accessories $50.99
260 Licences item 260 Licences $87.99
261 Hardware item 261 Hardware $124.99
262 Software item 262 Software $161.99
263 Services item 263 Services $198.99
264 Accessories item 264 Accessories $235.99
265 Licences item 265 Licences $272.99
266 Hardware item 266 Hardware $309.99
267 Software item 267 Software $346.99
268 Services item 268 Services $383.99
269 Accessories item 269 Accessories $420.99
270 Licences item 270 Licences $457.99
271 Hardware item 271 Hardware $494.99
272 Software item 272 Software $31.99
273 Services item 273 Services $68.99
274 Accessories item 274 Accessories $105.99
275 Licences item 275 Licences $142.99
276 Hardware item 276 Hardware $179.99
277 Software item 277 Software $216.99
278 Services item 278 Services $253.99
279 Accessories item 279 Accessories $290.99
280 Licences item 280 Licences $327.99
281 Hardware item 281 Hardware $364.99
282 Software item 282 Software $401.99
283 Services item 283 Services $438.99
284 Accessories item 284 Accessories $475.99
285 Licences item 285 Licences $12.99
286 Hardware item 286 Hardware $49.99
287 Software item 287 Software $86.99
288 Services item 288 Services $123.99
289 Accessories item 289 Accessories $160.99
290 Licences item 290 Licences $197.99
291 Hardware item 291 Hardware $234.99
292 Software item 292 Software $271.99
293 Services item 293 Services $308.99
294 Accessories item 294 Accessories $345.99
295 Licences item 295 Licences $382.99
296 Hardware item 296 Hardware $419.99
297 Software item 297 Software $456.99
298 Services item 298 Services $493.99
299 Accessories item 299 Accessories $30.99
300 Licences item 300 Licences $67.99
301 Hardware item 301 Hardware $104.99
302 Software item 302 Software $141.99
303 Services item 303 Services $178.99
304 Accessories item 304 Accessories $215.99
305 Licences item 305 Licences $252.99
306 Hardware item 306 Hardware $289.99
307 Software item 307 Software $326.99
308 Services item 308 Services $363.99
309 Accessories item 309 Accessories $400.99
310 Licences item 310 Licences $437.99
311 Hardware item 311 Hardware $474.99
312 Software item 312 Software $11.99
313 Services item 313 Services $48.99
314 Accessories item 314 Accessories $85.99
315 Licences item 315 Licences $122.99
316 Hardware item 316 Hardware $159.99
317 Software item 317 Software $196.99
318 Services item 318 Services $233.99
319 Accessories item 319 Accessories $270.99
320 Licences item 320 Licences $307.99
321 Hardware item 321 Hardware $344.99
322 Software item 322 Software $381.99
323 Services item 323 Services $418.99
324 Accessories item 324 Accessories $455.99
325 Licences item 325 Licences $492.99
326 Hardware item 326 Hardware $29.99
327 Software item 327 Software $66.99
328 Services item 328 Services $103.99
329 Accessories item 329 Accessories $140.99
330 Licences item 330 Licences $177.99
331 Hardware item 331 Hardware $214.99
332 Software item 332 Software $251.99
333 Services item 333 Services $288.99
334 Accessories item 334 Accessories $325.99
335 Licences item 335 Licences $362.99
336 Hardware item 336 Hardware $399.99
337 Software item 337 Software $436.99
338 Services item 338 Services $473.99
339 Accessories item 339 Accessories $10.99
340 Licences item 340 Licences $47.99
341 Hardware item 341 Hardware $84.99
342 Software item 342 Software $121.99
343 Services item 343 Services $158.99
344 Accessories item 344 Accessories $195.99
345 Licences item 345 Licences $232.99
346 Hardware item 346 Hardware $269.99
347 Software item 347 Software $306.99
348 Services item 348 Services $343.99
349 Accessories item 349 Accessories $380.99
350 Licences item 350 Licences $417.99
351 Hardware item 351 Hardware $454.99
352 Software item 352 Software $491.99
353 Services item 353 Services $28.99
354 Accessories item 354 Accessories $65.99
355 Licences item 355 Licences $102.99
356 Hardware item 356 Hardware $139.99
357 Software item 357 Software $176.99
358 Services item 358 Services $213.99
359 Accessories item 359 Accessories $250.99
360 Licences item 360 Licences $287.99
361 Hardware item 361 Hardware $324.99
362 Software item 362 Software $361.99
363 Services item 363 Services $398.99
364 Accessories item 364 Accessories $435.99
365 Licences item 365 Licences $472.99
366 Hardware item 366 Hardware $9.99
367 Software item 367 Software $46.99
368 Services item 368 Services $83.99
369 Accessories item 369 Accessories $120.99
370 Licences item 370 Licences $157.99
371 Hardware item 371 Hardware $194.99
372 Software item 372 Software $231.99
373 Services item 373 Services $268.99
374 Accessories item 374 Accessories $305.99
375 Licences item 375 Licences $342.99
376 Hardware item 376 Hardware $379.99
377 Software item 377 Software $416.99
378 Services item 378 Services $453.99
379 Accessories item 379 Accessories $490.99
380 Licences item 380 Licences $27.99
381 Hardware item 381 Hardware $64.99
382 Software item 382 Software $101.99
383 Services item 383 Services $138.99
384 Accessories item 384 Accessories $175.99
385 Licences item 385 Licences $212.99
386 Hardware item 386 Hardware $249.99
387 Software item 387 Software $286.99
388 Services item 388 Services $323.99
389 Accessories item 389 Accessories $360.99
390 Licences item 390 Licences $397.99
391 Hardware item 391 Hardware $434.99
392 Software item 392 Software $471.99
393 Services item 393 Services $8.99
394 Accessories item 394 Accessories $45.99
395 Licences item 395 Licences $82.99
396 Hardware item 396 Hardware $119.99
397 Software item 397 Software $156.99
398 Services item 398 Services $193.99
399 Accessories item 399 Accessories $230.99
400 Licences item 400 Licences $267.99
401 Hardware item 401 Hardware $304.99
402 Software item 402 Software $341.99
403 Services item 403 Services $378.99
404 Accessories item 404 Accessories $415.99
405 Licences item 405 Licences $452.99
406 Hardware item 406 Hardware $489.99
407 Software item 407 Software $26.99
408 Services item 408 Services $63.99
409 Accessories item 409 Accessories $100.99
410 Licences item 410 Licences $137.99
411 Hardware item 411 Hardware $174.99
412 Software item 412 Software $211.99
413 Services item 413 Services $248.99
414 Accessories item 414 Accessories $285.99
415 Licences item 415 Licences $322.99
416 Hardware item 416 Hardware $359.99
417 Software item 417 Software $396.99
418 Services item 418 Services $433.99
419 Accessories item 419 Accessories $470.99
420 Licences item 420 Licences $7.99
421 Hardware item 421 Hardware $44.99
422 Software item 422 Software $81.99
423 Services item 423 Services $118.99
424 Accessories item 424 Accessories $155.99
425 Licences item 425 Licences $192.99
426 Hardware item 426 Hardware $229.99
427 Software item 427 Software $266.99
428 Services item 428 Services $303.99
429 Accessories item 429 Accessories $340.99
430 Licences item 430 Licences $377.99
431 Hardware item 431 Hardware $414.99
432 Software item 432 Software $451.99
433 Services item 433 Services $488.99
434 Accessories item 434 Accessories $25.99
435 Licences item 435 Licences $62.99
436 Hardware item 436 Hardware $99.99
437 Software item 437 Software $136.99
438 Services item 438 Services $173.99
439 Accessories item 439 Accessories $210.99
440 Licences item 440 Licences $247.99
441 Hardware item 441 Hardware $284.99
442 Software item 442 Software $321.99
443 Services item 443 Services $358.99
444 Accessories item 444 Accessories $395.99
445 Licences item 445 Licences $432.99
446 Hardware item 446 Hardware $469.99
447 Software item 447 Software $6.99
448 Services item 448 Services $43.99
449 Accessories item 449 Accessories $80.99
450 Licences item 450 Licences $117.99
451 Hardware item 451 Hardware $154.99
452 Software item 452 Software $191.99
453 Services item 453 Services $228.99
454 Accessories item 454 Accessories $265.99
455 Licences item 455 Licences $302.99
456 Hardware item 456 Hardware $339.99
457 Software item 457 Software $376.99
458 Services item 458 Services $413.99
459 Accessories item 459 Accessories $450.99
460 Licences item 460 Licences $487.99
461 Hardware item 461 Hardware $24.99
462 Software item 462 Software $61.99
463 Services item 463 Services $98.99
464 Accessories item 464 Accessories $135.99
465 Licences item 465 Licences $172.99
466 Hardware item 466 Hardware $209.99
467 Software item 467 Software $246.99
468 Services item 468 Services $283.99
469 Accessories item 469 Accessories $320.99
470 Licences item 470 Licences $357.99
471 Hardware item 471 Hardware $394.99
472 Software item 472 Software $431.99
473 Services item 473 Services $468.99
474 Accessories item 474 Accessories $5.99
475 Licences item 475 Licences $42.99
476 Hardware item 476 Hardware $79.99
477 Software item 477 Software $116.99
478 Services item 478 Services $153.99
479 Accessories item 479 Accessories $190.99
480 Licences item 480 Licences $227.99
481 Hardware item 481 Hardware $264.99
482 Software item 482 Software $301.99
483 Services item 483 Services $338.99
484 Accessories item 484 Accessories $375.99
485 Licences item 485 Licences $412.99
486 Hardware item 486 Hardware $449.99
487 Software item 487 Software $486.99
488 Services item 488 Services $23.99
489 Accessories item 489 Accessories $60.99
490 Licences item 490 Licences $97.99
491 Hardware item 491 Hardware $134.99
492 Software item 492 Software $171.99
493 Services item 493 Services $208.99
494 Accessories item 494 Accessories $245.99
495 Licences item 495 Licences $282.99
496 Hardware item 496 Hardware $319.99
497 Software item 497 Software $356.99
498 Services item 498 Services $393.99
499 Accessories item 499 Accessories $430.99
500 Licences item 500 Licences $467.99
Show Code
VirtualizeDemo.razor

<div class='virtualize-demo-table-wrapper' tabindex='0' role='region' aria-label='Products'>
    <table class='table table-sm virtualize-demo-table' aria-rowcount='@(_products.Count + 1)'>
        <thead>
            <tr aria-rowindex='1'>
                <th scope='col'>#</th>
                <th scope='col'>Product</th>
                <th scope='col'>Category</th>
                <th scope='col' class='text-end'>Price</th>
            </tr>
        </thead>
        <tbody>
            <DwsVirtualize Name='VirtualizeDemo_Table' T='DemoProduct' Items='@_products' IsEnabled='true' ItemSize='37' SpacerElement='tr'>
                <ItemContent Context='row'>
                    <tr aria-rowindex='@(row.Index + 2)'>
                        <td>@row.PositionInSet</td>
                        <td>@row.Item.Name</td>
                        <td>@row.Item.Category</td>
                        <td class='text-end'>@row.Item.Price.ToString("C")</td>
                    </tr>
                </ItemContent>
            </DwsVirtualize>
        </tbody>
    </table>
</div>
<!-- No Height/Width/UseScrollContainer: DwsVirtualize renders no element of its own, so the outer div scrolls.
     ItemContent's row.Index is absolute (0-based), row.PositionInSet is Index + 1. -->

Context name

Context='person' renames the ChildContent parameter, and ItemContent takes its own Context. The container is a focusable, labelled group.

Anna Schmidt Platform
Ben Schmidt Design
Clara Schmidt Support
David Schmidt Sales
Elif Schmidt Finance
Felix Schmidt Research
Greta Schmidt Platform
Hannes Schmidt Design
Ida Schmidt Support
Jonas Schmidt Sales
Lea Schmidt Finance
Mika Schmidt Research
Anna Yilmaz Platform
Ben Yilmaz Design
Clara Yilmaz Support
David Yilmaz Sales
Elif Yilmaz Finance
Felix Yilmaz Research
Greta Yilmaz Platform
Hannes Yilmaz Design
Ida Yilmaz Support
Jonas Yilmaz Sales
Lea Yilmaz Finance
Mika Yilmaz Research
Anna Weber Platform
Ben Weber Design
Clara Weber Support
David Weber Sales
Elif Weber Finance
Felix Weber Research
Greta Weber Platform
Hannes Weber Design
Ida Weber Support
Jonas Weber Sales
Lea Weber Finance
Mika Weber Research
Anna Novak Platform
Ben Novak Design
Clara Novak Support
David Novak Sales
Elif Novak Finance
Felix Novak Research
Greta Novak Platform
Hannes Novak Design
Ida Novak Support
Jonas Novak Sales
Lea Novak Finance
Mika Novak Research
Anna Fischer Platform
Ben Fischer Design
Clara Fischer Support
David Fischer Sales
Elif Fischer Finance
Felix Fischer Research
Greta Fischer Platform
Hannes Fischer Design
Ida Fischer Support
Jonas Fischer Sales
Lea Fischer Finance
Mika Fischer Research
Anna Rossi Platform
Ben Rossi Design
Clara Rossi Support
David Rossi Sales
Elif Rossi Finance
Felix Rossi Research
Greta Rossi Platform
Hannes Rossi Design
Ida Rossi Support
Jonas Rossi Sales
Lea Rossi Finance
Mika Rossi Research
Anna Becker Platform
Ben Becker Design
Clara Becker Support
David Becker Sales
Elif Becker Finance
Felix Becker Research
Greta Becker Platform
Hannes Becker Design
Ida Becker Support
Jonas Becker Sales
Lea Becker Finance
Mika Becker Research
Anna Hoffmann Platform
Ben Hoffmann Design
Clara Hoffmann Support
David Hoffmann Sales
Elif Hoffmann Finance
Felix Hoffmann Research
Greta Hoffmann Platform
Hannes Hoffmann Design
Ida Hoffmann Support
Jonas Hoffmann Sales
Lea Hoffmann Finance
Mika Hoffmann Research
Anna Kaya Platform
Ben Kaya Design
Clara Kaya Support
David Kaya Sales
Elif Kaya Finance
Felix Kaya Research
Greta Kaya Platform
Hannes Kaya Design
Ida Kaya Support
Jonas Kaya Sales
Lea Kaya Finance
Mika Kaya Research
Anna Wagner Platform
Ben Wagner Design
Clara Wagner Support
David Wagner Sales
Elif Wagner Finance
Felix Wagner Research
Greta Wagner Platform
Hannes Wagner Design
Ida Wagner Support
Jonas Wagner Sales
Lea Wagner Finance
Mika Wagner Research
Anna Schmidt Platform
Ben Schmidt Design
Clara Schmidt Support
David Schmidt Sales
Elif Schmidt Finance
Felix Schmidt Research
Greta Schmidt Platform
Hannes Schmidt Design
Ida Schmidt Support
Jonas Schmidt Sales
Lea Schmidt Finance
Mika Schmidt Research
Anna Yilmaz Platform
Ben Yilmaz Design
Clara Yilmaz Support
David Yilmaz Sales
Elif Yilmaz Finance
Felix Yilmaz Research
Greta Yilmaz Platform
Hannes Yilmaz Design
Ida Yilmaz Support
Jonas Yilmaz Sales
Lea Yilmaz Finance
Mika Yilmaz Research
Anna Weber Platform
Ben Weber Design
Clara Weber Support
David Weber Sales
Elif Weber Finance
Felix Weber Research
Greta Weber Platform
Hannes Weber Design
Ida Weber Support
Jonas Weber Sales
Lea Weber Finance
Mika Weber Research
Anna Novak Platform
Ben Novak Design
Clara Novak Support
David Novak Sales
Elif Novak Finance
Felix Novak Research
Greta Novak Platform
Hannes Novak Design
Ida Novak Support
Jonas Novak Sales
Lea Novak Finance
Mika Novak Research
Anna Fischer Platform
Ben Fischer Design
Clara Fischer Support
David Fischer Sales
Elif Fischer Finance
Felix Fischer Research
Greta Fischer Platform
Hannes Fischer Design
Ida Fischer Support
Jonas Fischer Sales
Lea Fischer Finance
Mika Fischer Research
Anna Rossi Platform
Ben Rossi Design
Clara Rossi Support
David Rossi Sales
Elif Rossi Finance
Felix Rossi Research
Greta Rossi Platform
Hannes Rossi Design
Ida Rossi Support
Jonas Rossi Sales
Lea Rossi Finance
Mika Rossi Research
Anna Becker Platform
Ben Becker Design
Clara Becker Support
David Becker Sales
Elif Becker Finance
Felix Becker Research
Greta Becker Platform
Hannes Becker Design
Ida Becker Support
Jonas Becker Sales
Lea Becker Finance
Mika Becker Research
Anna Hoffmann Platform
Ben Hoffmann Design
Clara Hoffmann Support
David Hoffmann Sales
Elif Hoffmann Finance
Felix Hoffmann Research
Greta Hoffmann Platform
Hannes Hoffmann Design
Ida Hoffmann Support
Jonas Hoffmann Sales
Lea Hoffmann Finance
Mika Hoffmann Research
Anna Kaya Platform
Ben Kaya Design
Clara Kaya Support
David Kaya Sales
Elif Kaya Finance
Felix Kaya Research
Greta Kaya Platform
Hannes Kaya Design
Ida Kaya Support
Jonas Kaya Sales
Lea Kaya Finance
Mika Kaya Research
Anna Wagner Platform
Ben Wagner Design
Clara Wagner Support
David Wagner Sales
Elif Wagner Finance
Felix Wagner Research
Greta Wagner Platform
Hannes Wagner Design
Ida Wagner Support
Jonas Wagner Sales
Lea Wagner Finance
Mika Wagner Research
Anna Schmidt Platform
Ben Schmidt Design
Clara Schmidt Support
David Schmidt Sales
Elif Schmidt Finance
Felix Schmidt Research
Greta Schmidt Platform
Hannes Schmidt Design
Ida Schmidt Support
Jonas Schmidt Sales
Lea Schmidt Finance
Mika Schmidt Research
Anna Yilmaz Platform
Ben Yilmaz Design
Clara Yilmaz Support
David Yilmaz Sales
Elif Yilmaz Finance
Felix Yilmaz Research
Greta Yilmaz Platform
Hannes Yilmaz Design
Ida Yilmaz Support
Jonas Yilmaz Sales
Lea Yilmaz Finance
Mika Yilmaz Research
Anna Weber Platform
Ben Weber Design
Clara Weber Support
David Weber Sales
Elif Weber Finance
Felix Weber Research
Greta Weber Platform
Hannes Weber Design
Ida Weber Support
Jonas Weber Sales
Lea Weber Finance
Mika Weber Research
Anna Novak Platform
Ben Novak Design
Clara Novak Support
David Novak Sales
Elif Novak Finance
Felix Novak Research
Greta Novak Platform
Hannes Novak Design
Ida Novak Support
Jonas Novak Sales
Lea Novak Finance
Mika Novak Research
Anna Fischer Platform
Ben Fischer Design
Clara Fischer Support
David Fischer Sales
Elif Fischer Finance
Felix Fischer Research
Greta Fischer Platform
Hannes Fischer Design
Ida Fischer Support
Jonas Fischer Sales
Lea Fischer Finance
Mika Fischer Research
Show Code
VirtualizeDemo.razor

<DwsVirtualize Name='VirtualizeDemo_ContextName' T='DemoPerson' Items='@_people' Context='person' Height='220' ItemSize='44' AriaLabel='Team members'>
    <div class='virtualize-demo-person'>
        <strong>@person.Name</strong>
        <span class='virtualize-demo-row__meta'>@person.Team</span>
    </div>
</DwsVirtualize>
<!-- Context is Razor syntax, not a parameter: Context='person' names ChildContent's argument, and
     <ItemContent Context='row'> names ItemContent's. The container is a focusable role='group' labelled by AriaLabel.

     public sealed record DemoPerson(int Id, string Name, string Team); -->

Interface-Description

Name Typ Default Description
TotalItemCount int 0 / -1 Items.Count (0 when Items is null), or the last total ItemsProvider reported: -1 until its first result.
RenderedStartIndex int -1 Index of the first rendered item. -1 while unknown: before the first render, and on the framework engine with Items and no OnItemsRendered / OnLoadMoreItems.
RenderedCount int -1 Number of rendered items (own engine: placeholders included; framework provider path: items returned). -1 while unknown, like RenderedStartIndex.
LastError Exception? null The most recent provider, load-more, render or JS interop failure, or null; RefreshDataAsync clears it.
IsFetching bool false True while the initial provider load, a provider fetch or OnLoadMoreItems is running.
FirstVisibleIndex int -1 Own engine: index of the first item in view at the last reported scroll position. -1 on the framework engine and for an empty list.
LastVisibleIndex int -1 Own engine: index of the last item in view; an item that starts exactly at the far edge of the viewport does not count.
TotalSize double 0 Own engine: size of the whole list along the scroll axis in px, as far as the sizes are known (estimates for the rest), group headers included. Above 16,000,000 px a warning is logged once: browsers do not lay out more.
ScrollOffset double 0 Own engine: the list-relative scroll offset the browser last reported, in px.
ViewportSize double 0 Own engine: the viewport size along the scroll axis - what the browser last reported, and until then the estimate from Height / MaxHeight / Width / InitialViewportSize.
Name Typ Parameters Description
RefreshDataAsync Task Re-queries the source (ItemsProvider or Items) on every engine, clears the error state (including LastError) and the own engine's measured sizes, and re-renders once. On the own engine the returned task completes after the refreshed window is fetched.
ScrollToIndexAsync Task<bool> int index, DwsVirtualizeScrollAlignment alignment, bool smooth Scrolls the item at index into view. Exact on the own engine (the window around the item is rendered first); a proportional estimate on the framework engine. Returns false in transparent mode (with a one-time warning) or when nothing could be scrolled.
InvalidateItemSizes void Own engine: drops the measured sizes and measures the rendered items again, for example after fonts loaded or the layout width changed.
LoadMoreAsync Task Raises OnLoadMoreItems now, as reaching the end or the 'Load more' button does. Does nothing while a request runs, while Disabled, once HasMoreItems is false, with ItemsProvider, or after a failed request (use RetryAsync). Completes when the handler has completed.
RetryAsync Task<bool> Clears the current failure and repeats what failed, like the Retry button of the default error block: a load-more failure first, then a provider, a render and a JS interop failure. Also for a failure an OnError handler marked as handled, which has no error block to retry from. Returns false when there was nothing to retry.
Name Typ Default Description
ChildContent RenderFragment<T>? null Item template that receives the item. Target of implicit child content; Context="x" on the tag renames its argument. When it is null and ItemContent is not set, nothing is rendered per item.
ItemContent RenderFragment<DwsVirtualizeItemContext<T>>? null Item template that receives the item, its absolute Index and the total Count (see DwsVirtualizeItemContext). Wins over ChildContent. <ItemContent Context="row"> renames its argument.
Placeholder RenderFragment<PlaceholderContext>? null Rendered for each index whose data ItemsProvider is still fetching; render it at context.Size px or the size estimate drifts. Without it, SpacerElement="tr" uses a table-row placeholder, container mode a skeleton block and transparent mode the framework's default.
LoadingContent RenderFragment? null Shown until the first ItemsProvider result arrives. Container mode shows a localised spinner when null; transparent mode shows nothing.
EmptyContent RenderFragment? null Shown when the source holds zero items. Container mode falls back to EmptyText, then to the localised message; transparent mode shows nothing.
EmptyText string? null Replaces the localised default empty message in container mode.
ErrorContent RenderFragment<DwsVirtualizeErrorContext>? null Shown for provider, load-more and render errors; the context carries Exception, Source, Message and RetryAsync. Container mode has a localised default with a retry button; transparent mode shows nothing unless this is set. On the own engine a provider failure after items have loaded keeps them and shows the error after the list, pinned to the bottom of the viewport; the framework engine shows it above the list.
LoadingMoreContent RenderFragment? null Footer shown while OnLoadMoreItems runs. Container mode has a localised default.
EndContent RenderFragment? null Shown after the last item once the list is complete: it holds items, HasMoreItems is false and nothing is loading or failed. Container mode falls back to EndText or the localised message when ShowEndMessage is set; transparent mode shows only this fragment.
ShowEndMessage bool false Container mode: shows the default 'end of the list' message after the last item when no EndContent is set.
EndText string? null Replaces the localised default end message (ShowEndMessage).
LoadMoreText string? null Text of the 'Load more' button (LoadMoreMode.Button). Null or empty: the localised default.
Items ICollection<T>? null Fixed item source; null counts as empty. Keep the reference stable: with ItemSizeSelector a new collection rebuilds every size (O(n)), and re-allocating it on every render logs a warning once.
ItemsProvider ItemsProviderDelegate<T>? null Asynchronous source for paging and server-side data. Wins over Items (a warning is logged once when both are set) and always virtualizes. T must be written explicitly. A new delegate reference does not fetch - call RefreshDataAsync. Cancelling on the request's own token is not an error; any other exception is.
ItemKey Func<T, object>? null Identity for @key on the own engine's item wrappers. Defaults to the absolute index; null or repeated keys in the rendered window fall back to the index and log a warning once.
HasMoreItems bool false Signals that OnLoadMoreItems can add items beyond the current Items. Items only; with ItemsProvider report a growing TotalItemCount instead.
LoadMoreThreshold int 5 OnLoadMoreItems fires when the rendered range ends within this many items of the end.
LoadMoreDistance double? null Container mode: OnLoadMoreItems fires when the container is scrolled within this many px of the end of its content, measured in the browser, instead of counting items (LoadMoreThreshold). It also runs after a render that leaves the end in view. Works without virtualization too: IsEnabled="false" then loads page by page instead of everything at once. Null, negative or non-finite values keep the item threshold. Needs dws.js.
LoadMoreMode DwsVirtualizeLoadMoreMode Scroll Scroll loads while scrolling (LoadMoreThreshold or LoadMoreDistance). Button (container mode) shows a 'Load more' button after the last item instead: nothing loads by scrolling, the button stays busy while its request runs, the live region announces the request and what it added, and the focus goes to the container when the button leaves. An empty list still loads its first page by itself. Transparent mode has no element for the button and keeps loading by the rendered range (a warning is logged once).
Loading bool false Shows the loading block (LoadingContent) and marks the container busy while the caller fetches the items itself; the items already there stay rendered below it. With ItemsProvider the block shows by itself until the first result.
IsEnabled bool? null (auto) null virtualizes when a container is rendered, the own engine is requested (Horizontal, ItemSizeSelector, MeasureItems) or ItemsProvider is set, and renders a plain loop otherwise. true always virtualizes. false renders every item in a loop (a horizontal container keeps the horizontal layout); ItemsProvider always virtualizes.
VirtualizationThreshold int 0 An Items source with this many items or fewer renders as a plain loop, without spacers and without JS.
ItemSize float 0 (falls back to 30) Estimated item size in px: the height when vertical, the width when horizontal. 0, negative values, NaN and infinity fall back to 30 (with MeasureItems, to the average measured size).
ItemSizeSelector Func<T, float>? null Exact size of each item in px. Selects the own engine and enforces the size on each item wrapper unless MeasureItems is also set - nothing is measured, so prerendering is exact as well. Sizes are recomputed (O(n)) when Items changes reference or count, and when the selector is another delegate: pass a method group or a cached delegate, not a lambda that captures a local (a warning is logged once when every render brings a new one). InvalidateItemSizes re-runs it after the data changed in place.
MeasureItems bool false Measures the rendered items in the browser and corrects the estimates, keeping the scroll position anchored. Selects the own engine. Measured sizes survive Items reference changes; InvalidateItemSizes and RefreshDataAsync clear them.
FixedItemSize bool false Every item is exactly ItemSize px. Selects the own engine (container mode) for a vertical list with one item size too: the size is enforced on the item wrappers, the list gets its list roles, ScrollToIndexAsync is exact and FirstVisibleIndex is known - like an ItemSizeSelector that returns one size, without its per-item cost.
GroupSelector Func<T, object?>? null Groups consecutive items: every run of items with an equal value is one group, with a sticky header (GroupHeaderTemplate) before its first item. The items must already be ordered by group. Selects the own engine; needs Items (not ItemsProvider, at most 1,000,000 items) and GroupHeaderTemplate. Called for every item when the items, their number or the selector change (O(n)): pass a method group or a cached delegate, and call RefreshDataAsync after changing the list in place.
GroupHeaderTemplate RenderFragment<DwsVirtualizeGroupContext<T>>? null The header of a group. Rendered GroupHeaderSize px high (wide when horizontal) with role="heading"; a grouped list has no list roles of its own. With a Role of the caller's (a listbox, a grid) the headers are presentational.
GroupHeaderSize float 32 Size of a group header along the scroll axis in px. The headers are not measured: they are rendered at exactly this size, which keeps the offsets of a list with variable item sizes exact.
GroupHeaderLevel int 3 aria-level of the group headers (1 to 6). Pick the level below the list's own heading.
OverscanCount int 3 Items rendered beyond each edge of the viewport. Negative values count as 0.
MaxItemCount int? null (100) Upper bound on the rendered window. The framework engine (vertical, fixed size) renders at most this many items; the own engine renders at most MaxItemCount + 2 x OverscanCount.
StaticItemLimit int? null (500) Static SSR only: how many items are rendered. Nothing can fetch more on scroll there, so the list renders its first items in a plain loop - from Items, or asked once from ItemsProvider.
LoadMoreQueryParameter string? null (Name-more) Static SSR only: the address parameter counting the 'Load more' steps (?inbox-more=2). Rendered statically, a container list fed through Items raises OnLoadMoreItems once per step during its one render - the same handler as interactively - and ends with a 'Load more' link to the next step. Bounded by StaticItemLimit and 50 steps.
SpacerElement string "div" Tag of the framework spacers. Use "tr" inside a <tbody>. Changing it re-creates the inner virtualizer. ItemSizeSelector and MeasureItems need "div" and fall back to the framework engine (with a warning) otherwise; horizontal lists ignore SpacerElement (with a warning) and keep the own engine.
Orientation DwsLayoutOrientation Vertical Horizontal lays the items out left to right and turns on the container and the own engine.
CatchRenderErrors bool false Wraps the items in an error boundary: a throwing item template shows ErrorContent (or the localised message) and raises OnError instead of breaking the page. Emits no markup while healthy, so it is safe inside a table.
ProviderDebounceMs int 60 Own engine: leading and trailing debounce for ItemsProvider fetches while scrolling. Fetched pages are cached, only one fetch runs at a time, and requests that leave the window are cancelled.
SkeletonSpacers bool false Own engine: paints loading stripes on the spacers, so a fast fling on Blazor Server shows 'loading' instead of blank space. The stripes stop pulsing under prefers-reduced-motion.
AnnounceChanges bool true Container mode: announces loaded items and the end of the list in a polite live region. Errors are announced by the role="alert" error block, independent of AnnounceChanges; a handler that sets Handled must announce them itself.
UseScrollContainer bool false Renders DwsVirtualize's own scroll container; implied by Height, MaxHeight, Width and Horizontal. Without a size it needs a sized parent. Required for OnScroll, OnScrollStart, OnScrollEnd, RestoreScrollPosition, ScrollToIndexAsync and the own engine. Transparent mode (no container) has no element: those features are unavailable and log a warning once, and ID, Class, Style, AriaLabel, Role and extra attributes have nothing to land on - only Name and Visible apply.
ScrollEventThrottle int 100 Minimum interval between OnScroll notifications in ms (at least 16).
ScrollEndDelay int 150 Idle time in ms that counts as scroll end when the browser has no native scrollend event (at least 50).
RestoreScrollPosition bool false Saves the scroll position in sessionStorage (per browser tab) and restores it when the component is created again, for example after navigating back. Container mode only.
ScrollRestorationKey string? null Storage key for RestoreScrollPosition. Defaults to the page path (without query and fragment) + "|" + Name. When two live instances share a key, the last one to save wins.
Height double? null Container height in px. Turns on the container.
MaxHeight double? null Container max-height in px. Turns on the container.
Width double? null Container width in px. Turns on the container.
InitialViewportSize double? null Own engine: the viewport size along the scroll axis to assume until the browser has reported the real one, for a container sized by a stylesheet (UseScrollContainer in a sized parent) rather than by Height / MaxHeight / Width. Decides how many items the first render and a prerender hold (ten are assumed without it). Sets no style.
Color DwsColor Undefined Accent colour of the focus ring, the spinners and the retry button (--dws-virtualize-accent).
AriaLabelledBy string? null Id of the element that names the container, usually its visible heading. Used when AriaLabel is not set; the generic default name is then left out. An aria-labelledby passed as an additional attribute leaves the default out as well.
AriaLabel string? null Accessible name of the container (role="group", focusable for keyboard scrolling). Say what the list contains; an aria-labelledby or aria-label passed as an additional attribute overrides it. Falls back to the localised, generic 'Scrollable list'.
Role string? null Role of the element that directly contains the items. Defaults to "list" on the own engine. When Role is set, the element with that role also gets the accessible name (AriaLabel).
ItemRole string? null Role of the own engine's item wrappers; defaults to "listitem" when Role resolves to "list". aria-posinset and aria-setsize (-1 while the total is unknown or more items may load) are emitted with it.
Name Typ Description
OnScroll EventCallback<DwsVirtualizeScrollEventArgs> Raised while scrolling, at most once per ScrollEventThrottle. Container mode only. Never re-renders DwsVirtualize - but a method-group handler re-renders its owner on every call, so feed a small child component or build the callback once with a null receiver.
OnScrollStart EventCallback<DwsVirtualizeScrollEventArgs> Raised on the first scroll event after the list was idle. Container mode only.
OnScrollEnd EventCallback<DwsVirtualizeScrollEventArgs> Raised on the browser's scrollend event, or after ScrollEndDelay ms without scrolling. Container mode only.
OnItemsRendered EventCallback<DwsVirtualizeItemsRenderedEventArgs> Raised after the rendered range or the total changed. Deduplicated and raised after the render, so a handler that re-renders the parent cannot loop. The plain-loop path reports the whole list.
OnLoadMoreItems EventCallback<DwsVirtualizeLoadMoreEventArgs> Items only (with ItemsProvider report a growing TotalItemCount). Raised when the rendered range ends within LoadMoreThreshold items of the end while HasMoreItems is true. One call at a time, and consecutive renders with the same rendered end and loaded count do not raise it again: a handler that adds nothing cannot loop, and is raised again only when the rendered range moves. Without virtualization every item counts as rendered, so loading continues until HasMoreItems is false. The token is cancelled on dispose.
OnError EventCallback<DwsVirtualizeErrorEventArgs> Raised for provider, render, load-more and JS interop failures, which are always logged as well. Set Handled to suppress the error block (ErrorContent included), or Message to replace its text. JS interop failures have no error block.
Name Typ Default Description
Element ElementReference The associated web component. May be null if accessed before the component is rendered.
ComponentGuid Guid Unique identifier for the component.
TypeString string The name of the component type, obtained from reflection.
Authorized_RegisterEnabled bool false Indicates whether this component is enabled through a permission registry.
Authorized_RegisterSelected bool false Indicates whether this component is selected in permission selection mode.
GetInitializedState bool false Returns whether the component is initialized.
GetRenderModeState DwsRenderMode Returns the current render mode.
GetComponentState DwsComponentStateType Returns the current component state.
GetIsInteractiveState bool false Returns whether the component is interactive.
GetIsPrerenderingState bool false Returns whether the component is prerendering.
GetComponentLoadingState bool false Returns whether the component is loading.
IsFormBusy bool false Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState).
Name Typ Parameters Description
DebugInfo void Logs debug information about the component.
UpdateState void Updates the component's state and triggers StateHasChanged.
UpdateStateAsync Task Asynchronously updates the component's state and triggers StateHasChanged.
Dispose void Disposes the component and releases resources.
FocusAsync ValueTask bool containedInScrollableList Sets focus to the component's element.
Name Typ Default Description
Name string Required unique identifier for the component within its container.
Visible bool true Determines if the component is visible in the UI.
Disabled bool false Disables the form control, ensuring it doesn't participate in form submission.
ComponentNameSpace string The namespace for permission-based access control.
PermissionKey string? null A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins.
Class string Optional CSS class names.
Style string Optional in-line styles.
Tag object An optional user-defined object to store any additional data with the component.
BackReference DwsReference A reference to the enclosing component.
ID string The HTML ID attribute for the component.
AdditionalAttributes Dictionary<string, object> Additional HTML attributes for the component's root element.
IgnorePermissionChecks bool false Bypasses all permission checks for this component.
IgnorePermissionSelection bool false Ignore permission selection mode for this component.
IgnoreFormBusy bool false Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it.
Name Typ Description
OnInitializedCallbackStarted EventCallback Callback when OnInitialized starts.
OnInitializedCallback EventCallback Callback during OnInitialized.
OnInitializedCallbackCompleted EventCallback Callback when OnInitialized completes.
OnInitializedAsyncCallbackStarted EventCallback Callback when OnInitializedAsync starts.
OnInitializedAsyncCallback EventCallback Callback during OnInitializedAsync.
OnInitializedAsyncCallbackCompleted EventCallback Callback when OnInitializedAsync completes.
OnIsComponentLoadingChanged EventCallback<bool> Callback when IsComponentLoading changes.
OnCurrentRenderModeChanged EventCallback<DwsRenderMode> Callback when CurrentRenderMode changes.
OnComponentStateChanged EventCallback<DwsComponentStateType> Callback when ComponentState changes.

Interface-Description context & event types

Name Typ Default Description
DwsVirtualizeItemContext<T>.Item T The item.
DwsVirtualizeItemContext<T>.Index int Absolute, 0-based position in the source (not in the rendered window).
DwsVirtualizeItemContext<T>.Count int Total number of items in the source.
DwsVirtualizeItemContext<T>.PositionInSet int Index + 1, ready for aria-posinset.
DwsVirtualizeScrollEventArgs.ScrollOffset double Scroll position in px along the orientation (normalised for right-to-left layouts).
DwsVirtualizeScrollEventArgs.ViewportSize double Visible size of the container in px.
DwsVirtualizeScrollEventArgs.ScrollSize double Total scrollable size in px.
DwsVirtualizeScrollEventArgs.Orientation DwsLayoutOrientation Orientation of the list.
DwsVirtualizeScrollEventArgs.IsAtStart bool True when scrolled to the start.
DwsVirtualizeScrollEventArgs.IsAtEnd bool True when scrolled to the end.
DwsVirtualizeScrollEventArgs.FirstVisibleIndex int? First visible item; own engine only, null on the framework engine.
DwsVirtualizeScrollEventArgs.LastVisibleIndex int? Last visible item (an item that starts exactly at the far edge does not count); own engine only, null on the framework engine.
DwsVirtualizeGroupContext<T>.Key object? What GroupSelector returned for the items of the group.
DwsVirtualizeGroupContext<T>.Item T An item of the group: its first one while the group's start is rendered, otherwise the first rendered one.
DwsVirtualizeGroupContext<T>.Index int Absolute index of Item.
DwsVirtualizeItemsRenderedEventArgs.StartIndex int First rendered index.
DwsVirtualizeItemsRenderedEventArgs.Count int Number of rendered items.
DwsVirtualizeItemsRenderedEventArgs.TotalItemCount int Total number of items.
DwsVirtualizeItemsRenderedEventArgs.EndIndex int Index after the last rendered item (StartIndex + Count).
DwsVirtualizeLoadMoreEventArgs.LoadedItemCount int Number of items currently loaded (Items.Count). Consecutive renders with the same rendered end and loaded count do not raise the event again: a handler that adds nothing cannot loop, and is raised again only when the rendered range moves.
DwsVirtualizeLoadMoreEventArgs.LastRenderedIndex int Last rendered index when the event was raised, or -1 when nothing is rendered yet.
DwsVirtualizeLoadMoreEventArgs.CancellationToken CancellationToken Cancelled when the component is disposed; pass it to the service call.
DwsVirtualizeErrorEventArgs.Exception Exception The failure.
DwsVirtualizeErrorEventArgs.Source DwsVirtualizeErrorSource ItemsProvider, Render, LoadMore or JsInterop.
DwsVirtualizeErrorEventArgs.StartIndex int? First index of the failed request, when there is one.
DwsVirtualizeErrorEventArgs.Count int? Size of the failed request, when there is one.
DwsVirtualizeErrorEventArgs.Handled bool false Set to true to suppress the error block (the localised default and ErrorContent). Nothing is announced and there is no retry button then: announce the error yourself and call RefreshDataAsync to recover.
DwsVirtualizeErrorEventArgs.Message string? null Set to replace the text of the default error UI.
DwsVirtualizeErrorContext.Exception Exception The failure shown by ErrorContent.
DwsVirtualizeErrorContext.Source DwsVirtualizeErrorSource ItemsProvider, Render or LoadMore. JS interop failures raise OnError only and have no error block.
DwsVirtualizeErrorContext.Message string The text the default error block shows: the Message set in OnError, otherwise the localised default for Source.
DwsVirtualizeErrorContext.RetryAsync Func<Task> Clears the error and repeats what failed: re-queries the provider, raises OnLoadMoreItems again or recovers the item error boundary.
DwsVirtualizeScrollAlignment enum Start Start, Center, End, Nearest - where ScrollToIndexAsync places the item.
DwsVirtualizeErrorSource enum ItemsProvider, Render, LoadMore, JsInterop.
An error has occurred. This app may no longer respond until reloaded.