Hi,
We use xamdatagrid in one of our screens which gets live data. Ocassionally the grouping breaks and empty string is shown as group header with all records under it. I have only noticed this issue occouring when there is a data update.
If you have encountered this issue before then please suggest a fix.
Thanks and regards
Hi Parag,
I haven't encountered this before but I'm building a sample to try and reproduce this. I will get back to you once the sample is complete and I have tested this scenario.
I put together a small sample that binds the XamDataGrid to some data. I then grouped by one of the columns and ran a timer which periodically updates the data in that column. Using the latest build for 14.2, I do not see the grouping header becoming an empty string. I have attached my sample so you can take a look.
What is the version number for the Infragistics assemblies that you are using? Maybe you are using an older build?
What specific build of 14.1 are you using so I can test against that? You can find the version number if you look at your project references and select one of the Infragistics DLLs, then view it's properties. One of the properties is the version number.
14.1.20141.2062
Also we use this event handler to regroup grid on new data -
private void OnInitializeRecordDirect(object sender,InitializeRecordEventArgs e)
{
if (e.SortValueChanged || !e.ReInitialize)
e.Record.RefreshSortPosition();
}
If I allow null values then I do see a grouping get added which has an empty string but this is expected. All the other groupings remain intact. From the way you described your issue, though, it appears that all of your groupings are lost and only 1 group is left (the empty string group) with every single record being placed under this group. I don't see this behavior using 14.1.20141.2062. My sample is attached.
It is expected though that if you group by ColumnA for example, and a value in one of the records for ColumnA is changed to null, that record will be moved to a NULL group. Since the value of the group is null, it displays an empty string.
I would like to point out that the current version of 14.1 is 14.1.20141.2216 so you are currently behind by a few versions. I recommend updating to the latest version when you find that you are running into issues with the controls to first see if it has been resolved in a service release.
Hi, our data can be null only momentarily and does get updated, but the grouping coninues to be empty many times inspite of data refresh. So we end up seeing data grouped under none/empty/null when they actually have values.
Did you manage to download the 14.1.2261 service release?
14.1.20141.2062 is an older version. We currently have 14.1.20141.2261 available which is a couple of versions ahead of yours. Since I can't reproduce the issue on my end to confirm if this will actually fix it, I can't say for sure if this will do the trick or not. But I recommend you update anyway just to be sure. You can download it from your account on the Infragistics website. Just click on your 14.1 product key and scroll down to the bottom of the page. Then click on the Service Release tab.
we use version 14.1.20141.2062. Is that the service release?
No, What is that? does it fix this issue?
Have you tried updating to the latest service release for 14.1 yet?