Rows duplicate

Hello!

I have found two bugs, I attach the code eliminating the vast majority to simplify the search for the bug.


To reproduce the bug, select the items "Prueba" in the listview on the left and then "Prueba2". If you look at the ids you will see that the lines have been duplicated.


The second incident, entering the accounts menu option, in the upper bar, we can mark or unmark the checkbox directly and click on another row. but this does not update the data. To do it I have to check or uncheck the checkbox and then pass the focus to another control of that line, so if I can save the line.


Attachment: GastoRYC_NET_2eefe437.zip


2 Replies 1 reply marked as answer

VS Vijayarasan Sivanandham Syncfusion Team August 7, 2023 01:42 PM UTC

Hi Ricardo

We are analyzing your requirement of “Rows duplicate in SfDataGrid” with the provided sample from our end. We will check and update you with further details on Aug 09, 2023.


Regards,

Vijayarasan S



VS Vijayarasan Sivanandham Syncfusion Team August 9, 2023 06:53 PM UTC

Ricardo,

Find the responses to your queries below.

Queries

Responses

 

To reproduce the bug, select the items "Prueba" in the listview on the left and then "Prueba2". If you look at the ids you will see that the lines have been duplicated.

 

 

We have checked the provided sample on our end. In your provided sample, you are refreshing the SfDataGrid in the SetColumnVisibility method. That is why the reported problem occurs. However, you can resolve the reported problem by commenting out the refresh code in the SetColumnVisibility method. Refer to the below code snippet,

public void SetColumnVisibility(AccountsDao? accountSelected = null)

{

    TransactionViewModel.AccountsSelected = accountSelected;

 

    if (gvTransactions.View != null)

    {

        // Comment out the below code to avoid the row duplicate

        //gvTransactions.View.Refresh();

    }

}



Find the modified sample demo in the attachment.

 

The second incident, entering the accounts menu option, in the upper bar, we can mark or unmark the checkbox directly and click on another row. but this does not update the data. To do it I have to check or uncheck the checkbox and then pass the focus to another control of that line, so if I can save the line.

 

We have created a new thread for the query, and the link is below.

https://www.syncfusion.com/forums/183968/unable-to-save-value-when-checking-or-unchecking-the-checkbox-directly-in


If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.


Attachment: Modified_Sample_5f761c6b.zip

Marked as answer
Loader.
Up arrow icon