Review when updating data

Hello,

I follow the instructions for using SfStepProgressBar.

To add the data I use an ObservableCollection.

The data changes dynamically through the firebase, but SfStepProgressBar does not update when changing the data. It loses the current data but the new data does not appear.

I use the function below to update:

private void UpdateSample()

        {

            ProductDeliveryTrackings = new ObservableCollection<ProductDeliveryTrackingModel>();

            if (App.Current.pedidoSelected != null)

            {

                ProductDeliveryTrackings.Add(new ProductDeliveryTrackingModel()

                    {

                        Title = "Pedido Realizado",

                        TitleStatus = "Aguardando o Pedido",

                        Date = ""

                    });


               ProductDeliveryTrackings.Add(new ProductDeliveryTrackingModel()

                    {

                        Title = "Aprovação",

                        TitleStatus = "Aguardando o pagamento.",

                        Date = "",

                        StepStatus = StepStatus.InProgress,

                        ProgressValue = 50

                    });

            }

          What I want in summary is to change the data of the SfStepProgressBar and that change to update the view.

          Thanks for help.



5 Replies 1 reply marked as answer

DS Devaraj Sekar Syncfusion Team September 21, 2020 12:20 PM UTC

Hi José,  
Thank you for contacting Syncfusion support.  
The reported issue with “Data binding not updating properly in SfStepProgress” works as expected from our side. We have prepared a sample based on the provided information, which can be downloaded from the below link.  
(Note: The properties used inside the Observable collection should also be Bindable Properties to achieve the mentioned requirement).  
Kindly let us know the whether the provided sample fulfills your requirement. If the issue still persists, kindly provide us the detailed information about the issue reproducing scenario, design layout or please modify the provided sample to reproduce the issue, which will be helpful for us to provide a prompt solution at earliest.  
Regards,  
Devaraj S 
  


Marked as answer

JD José Donizete de Oliveira Júnior September 23, 2020 11:48 PM UTC

Thanks, i adapted my code observing the example of you and I was successful.


August 16, 2021 08:53 AM UTC

Hi 

just followed your sample and updated the Progress Value on  ChangeLayout() Method


 public void ChangeLayout()

        {

            ShipmentInfoCollection[0].Title = "New Layout Updated";

            ShipmentInfoCollection[0].ProgressValue = 60;

            ShipmentInfoCollection[0].Status = StepStatus.InProgress;

            ShipmentInfoCollection[1].Title = "New Layout Updated";

            ShipmentInfoCollection[2].Title = "New Layout Updated";

            ShipmentInfoCollection[3].Title = "New Layout Updated";

        }

Control is just updating the title and progress value and status are not updating.

We are facing a similar issue in the binding where  progress value and status are not updating.

We tried the same sample in v19 and the same issue persists.




August 16, 2021 08:59 AM UTC

Hi 

just followed your sample and updated the Progress Value on  ChangeLayout() Method


 public void ChangeLayout()

        {

            ShipmentInfoCollection[0].Title = "New Layout Updated";

            ShipmentInfoCollection[0].ProgressValue = 60;

            ShipmentInfoCollection[0].Status = StepStatus.InProgress;

            ShipmentInfoCollection[1].Title = "New Layout Updated";

            ShipmentInfoCollection[2].Title = "New Layout Updated";

            ShipmentInfoCollection[3].Title = "New Layout Updated";

        }

Control is just updating the title and progress value and status are not updating.

We are facing a similar issue in the binding where  progress value and status are not updating.

We tried the same sample in v19 and the same issue persists.




GR Gayathri Ramalingam Syncfusion Team August 18, 2021 10:53 AM UTC

Hi José, 
 
We tried to reproduce the issue “Status is not updated properly using binding in SfStepProgress, but it is working fine as expected. 
  
We have modified sample based on the provided information and the sample can be downloaded from the below link.  
 
We created a video for illustrating the same and it can be downloaded from the below links, 
 
To change status for Step 1: 
 
To change status for Step 2: 
 
We suspect you want to change the progress value for Step 1 but for step1 the status is only updated, and the progress value is applied based on the next step. Could you please confirm for us whether this is what you have mentioned as "status are not updating" in your update? If yes, this is the default behavior of SfStepProgressBar. 
If our understanding is different from your requirement, could you please explain briefly about your requirement? It will be useful for us to investigate further this and assist you with a better solution at the earliest. 
 
 
With Regards, 
Gayathri R 


Loader.
Up arrow icon