Refresh Tree Grid Advanced widget as data is loaded
Hi,
I stumbled on a widget refresh issue while the data is loading in background. In particular scenario, InfoTable is created with initial API call and the rows are further updated with async API calls over the course of time. This scenario is chosen due to the amount of data that needs to be collected and the user will not be able to do/see anything until all data is collected (UI experience).
While the initial data is correctly presented in Tree Grid Advanced widget, there is a problem of presenting data as it becomes available.
Even if the properties "CookiePersitence" and "PreserveRowExpansion" are set to "true", together with "AutoScroll" property set to "true" (I also tried with the "false" here), there is a "glitch" when the data is reloaded.
Without "AutoScroll", if one is deep within the tree exploration and "zero" node is not in the view, widget will "jump" to start and present the tree from "zero" node and below (with tree expanded).
With "AutoScroll" enabled, it depends where is the selected row in the widget screen position, below 50% or above 50% of widget height. If it is below, it will "jump" to above 50% height, and if it is above, it will stay there or perform "small flick" several pixels up or down. In either case, it could completely brake the UI from the users point of view. And if one is just scrolling, not slecting anything, it will "jump" to last selected row.
Data refresh is tried via AutoRefresh widget and GetProperties service with automatically update values when possible and invoking "SeviceInvokeCompleted". Experimented also with Subscription to Event for invoking data refresh, but not much of a luck there, also.
Does anyone knows what am I doing wrong?
Regards,
Zeljko

