BlockSize Property

Gets or sets the number of records to request when requesting records from OpenLook. Default is 100.

object.BlockSize = [integer]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and integer is the number of records requested each time a block of records is requested from OpenLook.

Client support

   Newlook Smartclient

   Newlook Server

   OpenAccess-enabled controls only.

Use

This property only applies to OpenLook-enabled subfiles.

It determines the additional download size whenever there is a subsequent request to OpenLook (i.e. as the user scrolls down).

A large BlockSize number may have an impact on the speed of grid scrolling.

Newlook Server-only

If the LoadAllRecords property is True, Newlook will load all records but it will request and load the records in batches of the size specified in BlockSize.

If the LoadAllRecords property is False, Newlook will only load the number specified in BlockSize. Clicking the Next Page button below the datagrid will load the next batch of records in the grid. The number of records per page will be dictated by the value of BlockSize.

NOTE:

It is worth noting that the number of records requested may not always equal the number of records returned. There may not be that many records or the user may scroll to a different part of the datagrid and a new block of records will begin loading.

Limitations

An Openlook license is required to use this functionality.

See Also

LoadAllRecords Property | OnAllRecordsLoaded property

Applies To

DataGrid control


© 2004-2021 looksoftware. All rights reserved.