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

Two problems in evaluation

Thread ID:

Created:

Updated:

Platform:

Replies:

146180 Jul 24,2019 10:26 AM UTC Jul 25,2019 07:31 AM UTC Blazor 1
loading
Tags: Grid
Gudmar S Magnusson
Asked On July 24, 2019 10:26 AM UTC

1. Is it possible that paging is no longer working in 17.2.0.34-beta. AllowPaging="true" then the grid is just constantly displaying the moving circle. When I remove this option everything is working fine. Data is loaded etc.
2. Is there an example to use the toolbar to save inline edited records to DB via ToolbarClickHandler. How would I get the selected edited record:
 OnToolbarClick="@toolbarClickHandler">
public void toolbarClickHandler(Syncfusion.EJ2.Blazor.Navigations.ClickEventArgs args)
    {
        // Here you can customize your code
    }

Rahul Narayanasamy [Syncfusion]
Replied On July 25, 2019 07:31 AM UTC

Hi Gudmar, 
 
Greetings from Syncfusion. 
 
Query: Is it possible that paging is no longer working in 17.2.0.34-beta. AllowPaging="true" then the grid is just constantly displaying the moving circle. When I remove this option everything is working fine. Data is loaded etc. 
 
We have validated and checked the reported problem by creating sample in 17.2.0.34-beta NuGet package version. It works fine at our end. Please find the below sample for your reference. 
 
 
If you still facing the same problem, could you please share the below information. It will be helpful to provide a better solution. 
 
  • Share full grid code snippets.
  • Share screenshot or video demonstration of the reported problem.
  • Reproduce the reported problem in the provided sample if possible.
 
Query: Is there an example to use the toolbar to save inline edited records to DB via ToolbarClickHandler. How would I get the selected edited record: 
 
You can get the edited record data and details by using OnActionComplete event with the RequestType as Save. From this event, you will get the modified data(You can get the edited data in args.Data) from it. So using the modified data you can save the changes in server. Please find the below code example and screenshot for your reference. 
 
[code example] 
<EjsGrid DataSource="@gridData" AllowPaging="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })" OnActionComplete="@actionCompletedHandler"> 
        <GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="@EditMode.Normal"></GridEditSettings> 
        <GridPageSettings PageSize="5"></GridPageSettings> 
        <GridColumns> 
            ... 
       </GridColumns> 
    </EjsGrid> 
 
@functions{ 
    public List<OrdersDetails> 
    gridData { get; set; } 
    protected override void OnInit() 
    { 
    gridData = OrdersDetails.GetAllRecords(); 
 
    } 
    public void actionCompletedHandler(ActionEventArgs args) 
    { 
        if(args.RequestType.ToString() == "Save") 
        {   //you can get edited data by using args.Data 
            var data = JsonConvert.DeserializeObject<OrdersDetails>(JsonConvert.SerializeObject(args.Data));    //for getting serialized data 
        // Here you can process your operation to store database 
        } 
    } 
    } 
 
[screenshot] 
 
 
Please get back to us if you need further assistance. 
 
Regards, 
Rahul 


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