Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Grid Virtualization
posted

Hello.

I'm not using MVC. I would like to use grid virtualization. There is no sample which demonstrates this without using MVC.

I tried just setting the grid's virtualization property to true, but although the footer tells me I have thousands of rows, I cannot see them.

if I turn on AutoGenerateColumns, I see the rows, but the columns are squished to the left. What are the requirements for using virtualization: true?

Thanks.

Robert

  • 7570
    posted

    Hello RobertBrowerAxcelis,

    Please let us know if you have further questions.

  • 6279
    Suggested Answer
    posted

    Hi Robert,

     

    The virtualization-dedicated sample http://samples.infragistics.com/jquery/grid/virtualization has an HTML code view which provides an example of how virtualization can be set up for the igGrid widget:

    There's a particularly important sentence in that sample's description:
     "For vertical virtualization, it is important to note the average row height property – it’s default value is set to 25 pixels, but it might be necessary to manually adjust this property when working with a grid that has a small width, but the cell text is long so it spans multiple lines, and thus affects the rows’ heights. "

    So since the grid in the sample has a height of 400px it's perfectly fine with just virtualization: "true" (because 400 is a divisible without residue to 25 (which is the default value of the avgRowHeight option, which is pivotal to row virtualization ) ).

    Actually all of the intricacies of theigGrid's  virtualization are covered in this help topic:
    http://help.infragistics.com/Help/NetAdvantage/jQuery/2011.2/CLR4.0/html/igGrid_Virtualization.html

    Finally, if you wish to get a nice overview of which options may adjust virtualization, I suggest going though the igGrid's API help page:

     http://help.infragistics.com/jQuery/2011.2/ui.iggrid#options

     

    If you have any trouble with setting up virtualization for the grid, please let us know.

    Cheers,

    Borislav