Good Morning,
I have a gridview that loads some info about products in an unbound manner. I am using paging so I load only a handful at a time to quicken the loading process(because it really takes a long time to load many lines at once since there are some image getting/network traffic involved). But when I use paging, the grid still takes forever to load all pages before being usable. Is there anyway to load pages on demand? By on demand I mean click on the number of a page and load only the items that show on that page.
What I tried so far:
foreach
(ECommerceDTS.PRODUCTSRow row
in
eCommerceDTS.PRODUCTS.Skip(radGridView1.GridViewElement.PagingPanelElement.ZIndex * PAGE_SIZE).Take(PAGE_SIZE))
{
productEcomm =
new
ProductEcommerce(row);
listProducts.Add(productEcomm);
i++;
}
This works wonderfully loading only PAGE_SIZE items. The problem is that it loads only the first page, and the grid doesn't show other buttons to go to page 2. Is there any workaround this? Maybe hardsetting the number of buttons to show even if there are no items loaded?
Another question: Am I right to assume that ZIndex of the PagingPanelElement means the index of the selected page?
Thanks in advance. Kind Regards,
Leandro