Completed
Last Updated: 18 Aug 2022 10:16 by ADMIN
Release 3.6.0 (14 Sep 2022) (R3 2022)
Benjamin
Created on: 15 Oct 2021 09:15
Category: Gantt
Type: Feature Request
4
Add a Refresh method to the component reference
I would like to be able to use a Refresh method exposed on the component reference. 
4 comments
ADMIN
Tsvetomir
Posted on: 09 Aug 2022 13:00

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/.

ADMIN
Tsvetomir
Posted on: 29 Jul 2022 08:56

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

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Benjamin
Posted on: 25 Jul 2022 06:35

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

ADMIN
Tsvetomir
Posted on: 25 Jul 2022 06:31

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.