Hi,
I have a few questions regarding de loading time of the iGrid when the AutoFilterManager is attached. I’m using version 10.0.24 for both iGrid and AutoFilterManager (AFM).
Two performance examples from my environment for loading a form (this is not only loading iGrid but also the call to the database). The only thing I changed, when measuring the time, is the attachment of the iGrid to the AFM.
1. Datatable with 50 columns and 720 rows loaded through FillWithData() method
Form loading time without AFM: +/- 900 ms
Form loading time with AFM: +/- 5000 ms
2. Datatable with 93 columns, 163 rows loaded through FillWithData() method
Form loading time without AFM: +/- 740 ms
Form loading time with AFM: +/- 8000 ms
The performance in these two examples deteriorates by a factor of 5,5 to 11 when the AFM is attached. This gives complaining users, so I’m looking for a way to make performance better.
Questions:
1. Is it a known issue that the performance degradation is so big or is it an indication that I am doing something wrong?
If it is a known issue: are you working on an update/improvement?
2. After reading
https://10tec.com/forum/...ilterManager-is-attached I tried the following:
a) Tested the case where the grid is not assigned in the autofiltermanager property editor, and then attached it after the grid is filled (right after .FillWithData(..) is called).
b) Tested the below code (where iGridData is the iGrid object and igFltrData is the AFM object) where the iGrid object is detached before the .FillWithData(..) call and attached again after that call.
private void FillGrid2()
{
DataTable dt = getDataTable();
iGridData.BeginUpdate();
igFltrData.Grid = null;
iGridData.FillWithData(dt);
igFltrData.Grid = iGridData;
iGridData.EndUpdate();
}
Unfortunately no difference in performance(time) is measured in both test cases.
So, what am I doing wrong here, are there any other conditions for this to work?
3. I’m using the CreateColAutoFilter event (page 138 in the manual) to specify which columns should not be auto filtered. This does help with reducing loading time (but I do want an autofilter on most columns).
Are there other suggestions to reduce loading time?
Hope you can help me out!