TreeGrid is constantly refreshing, after click on "Edit" button.

Hello!

I have a problem while working with TreeGrid. When I try to edit a row in the TreeGrid, its content is constantly refreshing, if I have "OnActionBegin" in TreeGridEvents.

Here is my code:

@page "/"

            TreeColumnIndex="0" Height="600" AllowFiltering="true" AllowSorting="true"
            Toolbar="@(new List() { "Edit", new ItemModel() { Type=ItemType.Separator }, "Update", "Cancel" })">
   
@code {
    List Data { get; set; }
    EjsTreeGrid Grid;

    public class Test
    {
        public int TreeId { get; set; }

        public int? ParentTeeeId { get; set; }

        public String PropName { get; set; }

        public String PropVal { get; set; }
    };

    protected override void OnInitialized()
    {
        Data = new List();

        Data.Add(new Test()
        {
            TreeId = 0,
            ParentTeeeId = null,
            PropName = "prod"
        });

        Data.Add(new Test()
        {
            TreeId = 1,
            ParentTeeeId = 0,
            PropName = "id"
        });

        Data.Add(new Test()
        {
            TreeId = 2,
            ParentTeeeId = 0,
            PropName = "name"
        });
    }

    public void OnBegin(ActionEventArgs args)
    {

    }
}

3 Replies

PK Padmavathy Kamalanathan Syncfusion Team February 25, 2020 02:38 PM UTC

Hi IIya, 
  
Thanks for contacting Syncfusion Forums. 
  
QUERY: TreeGrid is constantly refreshing after click on "Edit" Button 
  
From your query we understand that when you try to edit any row of Tree Grid, the content of Tree Grid constantly refreshes when you have "OnActionBegin" event. 
  
We have validated the reported issue at our end. We are unable to reproduce the reported issue. We have created a sample based on your requirement and the same can be downloaded from below link 
  
Please provide below details so that we could proceed further in validating your issue, 
1) Please provide your Version details 
2) Also provide complete Tree Grid rendering code 
3) If possible, reproduce the reported issue in the above sample and share us. 
  
Regards, 
Padmavathy Kamalanathan 



IS Ilya Shamin February 26, 2020 04:37 AM UTC

Hello Padmavathy

Here are the answers to your questions: when I wrote this issue, Version="17.4.0.50" was used (in your project Version="17.4.0.49"). But when I updated version to "17.4.0.51" - my problem fixed. So I don't know if you need complete Tree Grid rendering code.

However I have another problem with TreeGrid, should I create new thread or can continue here?



PK Padmavathy Kamalanathan Syncfusion Team February 26, 2020 10:29 AM UTC

Hi IIya,

Thanks for your update.

We are glad to hear that your issue has been resolved.  

QUERY: I have another problem for Tree Grid, should i create new thread or can i continue here?

We suggest you to create new thread for the new queries. 

Regards,
Padmavathy Kamalanathan


Loader.
Up arrow icon