Hi, I have a RadPivotFieldList connected to a XmlaDataProvider. I need to know when the user has added new fields, is there an event or something that exposes this?
3 Answers, 1 is accepted
answered on 07 Apr 2014, 01:06 PM
XmlaDataProvider has PrepareDescriptionForField event which is raised when a new description is added via RadPivotFieldList. From the event arguments you can check the type of the description (if it is group - dimension, or aggregate - measure) and you can also modify the created description (by overriding e.Description value).
Thanks. It looks to me like this is called before the field is actually added, is there an event that triggers after it has been added? Basically I just want to know when the dataprovider is completely updated.
answered on 07 Apr 2014, 02:17 PM
There's no such event, but you can use StatusChanged event of the DataProvider and execute your logic when the status is "Ready". As the event is raised on multiple threads, you have to use a dispatcher in the handler in order to execute your code correctly: