We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid - blazor preview 6 - latest syncfusion package - edit not working

Thread ID:

Created:

Updated:

Platform:

Replies:

145384 Jun 19,2019 05:20 PM UTC Jun 24,2019 02:04 PM UTC Blazor 5
loading
Tags: Grid
BigMac
Asked On June 19, 2019 05:20 PM UTC

I'm using your examples of the grid and trying to getting editing to work but the grid just hands with progress icon after changing an item.
I tried all 3 edit modes:
(1)Normal mode -- after clicking update button in tool bar OR by clicking off the grid row selected to make it lose focus
(2) Dialog mode -- dialog box opens but upon clicking save button it hangs with progress icon behind the dialog box -- cancel button will cancel the window
(3) Batch mode -- it doesn't hang at all but upon update the grid just resets the original values.
Code used is your example code -- pasted below:
@page "/"
@using Syncfusion.EJ2.RazorComponents.Grids

Hello, world!

Welcome to your new app.










@functions{
public List gridData { get; set; }
protected override void OnInit()
{
gridData = OrdersDetails.GetAllRecords();
}
}


BigMac
Replied On June 19, 2019 05:26 PM UTC

I have attached project files since pasting code doesn't seem to have worked.




Attachment: grid_edit_issue_blazor_ac34254b.zip

BigMac
Replied On June 20, 2019 05:25 PM UTC

Is anybody looking into this???

Renjith Singh Rajendran [Syncfusion]
Replied On June 21, 2019 11:51 AM UTC

Hi Mark, 

Thanks for contacting Syncfusion support. 

We have validated the defect “Script error thrown when perform editing in Grid” you have initiated with us. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our Volume 2, 2019 Beta release.  
   
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.   

Until then we suggest you to use the “JsonAdaptor” of DataManager to overcome the problem you are facing. We have modified the sample, which you have shared with us. And we are attaching the sample for your convenience, please download the sample from the link below, 
 
[Index.razor] 
 
<EjsGrid id="Grid" AllowPaging="true" AllowSorting="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })"> 
    <EjsDataManager json="@gridData" Adaptor="Adaptors.JsonAdaptor"></EjsDataManager> 
    ... 
</EjsGrid> 
 
@functions{ 
    public OrdersDetails[] gridData { get; set; } 
    protected override void OnInit() 
    { 
        gridData = OrdersDetails.GetAllRecords().Cast<OrdersDetails>().ToArray(); 
    } 
} 
 

Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran. 


BigMac
Replied On June 21, 2019 08:50 PM UTC

Hi Mark, 

Thanks for contacting Syncfusion support. 

We have validated the defect “Script error thrown when perform editing in Grid” you have initiated with us. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our Volume 2, 2019 Beta release.  
   
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.   

Until then we suggest you to use the “JsonAdaptor” of DataManager to overcome the problem you are facing. We have modified the sample, which you have shared with us. And we are attaching the sample for your convenience, please download the sample from the link below, 
 
[Index.razor] 
 
<EjsGrid id="Grid" AllowPaging="true" AllowSorting="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })"> 
    <EjsDataManager json="@gridData" Adaptor="Adaptors.JsonAdaptor"></EjsDataManager> 
    ... 
</EjsGrid> 
 
@functions{ 
    public OrdersDetails[] gridData { get; set; } 
    protected override void OnInit() 
    { 
        gridData = OrdersDetails.GetAllRecords().Cast<OrdersDetails>().ToArray(); 
    } 
} 
 

Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran. 


In your workaround -- @gridData should be bound to the changes made in the UI, correct? The "edit" changes show in the UI but the changes are not being reflected in the datasource object (ie. @gridData) -- is that another bug or by design?  If it is by design then how do I programmatically access the changes made to the data in the EjsDataMaanger?

Mark

Vignesh Natarajan [Syncfusion]
Replied On June 24, 2019 02:04 PM UTC

Hi Mark,  

Sorry for the inconvenience caused.  

From your query we understand that you need to update original dataSource (griddata) while performing changes in the Grid UI. Since we have suggested JsonAdaptor as workaround solution, it has some limitation and it is not feasible to achieve your current requirement using JsonAdaptor. 

By default the edited data will be updated in both UI and Grid dataSource while binding the dataSource in the form of Collection of data/IEnumerable directly to Grid datasource in Blazor Application. But unfortunately we have some issues in it as we already informed. So we have promised to resolve this issue in our 2019 Volume 2 beta release which is expected to be rolled out in the month end of June 2019.  

Till then we appreciate your patience. 

Regards, 
Vignesh Natarajan. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon