Hello,
In my sample project I am using unidac components to connect to MSSQL database.
I have also attached my implementation of unidac server mode data query component (directory DevEx press)
and sample query to provide some data for testing.
Please open XE3 project and modify connection settings to conect to your database.
Run attached script to create necessary object and data.
After run application group data on datayear and datamonth.
Focus last group (column datayear) and do not expand child group.
Press Button1 to get list of records in group.
You will get error - "index out of bounds …"
Best regards
Tomasz Andrzejewski
Hello Andrzej,
This behavior does not look quite correct, so I have forwarded this ticket to our developers for research. I should mention that the use of data group properties and methods (DataGroupIndexByRowIndex, GetRowIndexByRecordIndex, etc.) in Server Mode is not an absolutely correct approach. The essence is that in Server Mode, records are not loaded from the server at once. So, the use of the DataGroupIndexByRowIndex property can give different results for a certain row based on how many records are loaded at a moment and how many groups are expanded. Moreover, Server Mode is intended to work with large numbers of records and the GetRowIndexByRecordIndex method may populate your list with many thousands of record indexes. This may dramatically decrease the performance. Taking this into account, I strongly recommend that you avoid processing the data group information manually in Server Mode if possible.
Hello,
It is part of our internal rules in application. User can select record from group and than e.g delete them (based on Id i want to get using (DataGroupIndexByRowIndex, GetRowIndexByRecordIndex, etc.) )
I know that this operation can take a time - but this is up to end user.
Main problem is that I can not get id using top group
Group1 (got error trying to get id)
-- Group 2 (works ok)
Best regards
Tomasz Andrzejewski
Where can I find hotfix?
The hot fix is just published. You are welcome to download and test it.