Hi,
i can get the RecordCount with xamDataGrid1.RecordManager.GetFilteredInDataRecords().Count<DataRecord>();
But when the Application is starting first time and the control is creating, i can´t find the right moment to get the current count. I always get 0 for the record count.
In addition i load a custom filter with LoadCustomizations at the start time after the control was created. So they can be already some record filter set.
greetings
Hase1982
Hello Hase,
The LoadCustomizations method is executed over the UI thread, but yo ucan still add an animation during teh XamDataGrid loads. Here Peter shared a sample application:
http://ko.infragistics.com/community/forums/t/72122.aspx
Hope this helps you.
Hello Stefan,
this solution works, thank you.
I have a addiontal question concerning the LoadCustomizations method. Is it right that this method runs in a separate Thread ?
Is there a possibility to display the waiting cursor while the method is executing ?
Hase
You can use the XamDataGrid's RecordsInViewChanged, which is fired when the Records that are in view changes, so you will have to put a flag that indicates that the event is fired after the LoadCustomizations method is called.
thank you for your answer.
After i set the DataContext, i load Customization with LoadCustomizations. In these Customizations filter be already set, so i need the current record count after i have set these Customizations. Is there a event that is threw after the Method LoadCustomizations was executed.
In that case yo ucan try the XamDataGrid's DataContextChanged event.