Hello,
Since the feature request originates from a private support ticket, I will summarize and give a use case for why the Refresh method is needed and what its main purpose should be.
Use Case: Update the UI after a change in the data collection of the component.
Currently, if the data collection is updated, the changes will not be directly reflected in the UI. A way to refresh the UI after a change in the collection should be provided.
As an alternative, in order to refresh the data without explicitly calling a refresh method, a new reference to the collection should be passed and the framework will automatically cause a refresh in the UI of the Gantt:
<TelerikGantt @ref="@GanttRef"
Data="@GanttData">
// . . .
@code{
private TelerikGantt<GanttTask> GanttRef;
private List<GanttTask> GanttData { get; set; }
private void AmendData()
{
GanttData = new List<GanttTask>(); // populate list accordingly
}
}
If there are additional use cases that should be covered, do let us know.
Regards,
Tsvetomir
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi, Benjamin,
Thank you for referencing the support thread from which this item originates. Indeed, I am aware of it and in addition to the clarifications there, I wanted to see the feedback from our broader community so that the feature is implemented in the most usable and valuable way.
If you have any further feedback, I am happy to hear it.
Kind regards,
Tsvetomir
Progress Telerik
Hi Tsvetomir,
this ticket was created by a Telerik Support Staff due to a ticket where everything was explained in detail in Oct 2021:
https://www.telerik.com/account/support-center/view-ticket/1538357
Regards
Ben
Hello,
In order for us to provide accurate and helpful enhancements, we would need more information regarding the refresh method. It would be very helpful if you can share a few use cases where the Refresh() method would be used.
Currently, the Refresh() method is intended to cause the component to rerender so that it could recalculate its dimensions, resize, etc. However, we are currently investigating the use case where the method is used for rebinding data to the component. For example, modifying the data collection that does not inherit the IObservableCollection interface. This approach would be implemented in a relatively similar way to the Rebind() method of the Grid.
Looking forward to your feedback.
Kind regards,
Tsvetomir
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.