ASP.NET MVC Controls | ComponentOne
Working with Controls / FlexGrid / Work with FlexGrid / Virtual Scrolling
In This Topic
    Virtual Scrolling
    In This Topic

    FlexGrid provides support for virtual scrolling while working with voluminous data. You can easily bind the FlexGrid with large data sets using models or other data sources, and experience a smooth scrolling without any flicker or delay. To make a grid work in virtual scrolling mode, the DisableServerRead property should be set to false(default). The value of InitialItemsCount property should be set to a number greater than 0.

    The following image shows how the FlexGrid appears on binding it to large data set. The example uses Sale.cs model added in the QuickStart section.

    The following code examples demonstrate how to enable Virtual Scrolling in the FlexGrid:

    In Code


    Copy Code
    public ActionResult VirtualScrolling()
        return View(Sales.GetData(1000));


    Copy Code
    @using MVCFlexGrid.Models
        .Bind(bl => bl.InitialItemsCount(100).Bind(Model))
    See Also