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.
Unfortunately, activation email could not send to your email. Please try again.

how to fire event(save) from outside main htmlbutton to syncfusion save button

Thread ID:

Created:

Updated:

Platform:

Replies:

131619 Jul 19,2017 09:23 PM Jul 20,2017 05:38 AM ASP.NET MVC 1
loading
Tags: Grid
Dongil Shin
Asked On July 19, 2017 09:23 PM

Hi, 

I'm using bulk batch edit functionality of the grid.
as attached screenshot, I'd like to fire event(save) of the syncfusion grid from outside main html button.

Is it possible?

Please give me a response.
Thank you.
Kind Regards,


Attachment: main_save_button_wants_to_trigger_syncfusion_savebtn_6fb311a4.zip

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On July 20, 2017 05:38 AM

Hi Dongil,  
 
Thanks for contacting Syncfusion Support.  
 
We could see you would like to save the Grid records from the external action. This can be achieved by using the batchSave method of the Grid. Refer to the following code example and API Reference.  
 
<input type="button" value="Save" onclick="SaveHandler()" /> 
 
@(Html.EJ().Grid<object>("FlatGrid") 
                    .EditSettings(edit => 
                    { 
                        edit.AllowAdding() 
                            .AllowDeleting() 
                            .AllowEditing() 
                            .EditMode(EditMode.Batch); 
                    }) 
 
) 
 
<script type="text/javascript"> 
    function SaveHandler() { 
        var obj = $("#FlatGrid").ejGrid("instance") 
        obj.batchSave() 
    } 
</script> 
 
 
Events related to the Batch Editing mode.  
 
 
Regards,  
Seeni Sakthi Kumar S. 


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.

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.

;