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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Editing and saving like Excel

Thread ID:

Created:

Updated:

Platform:

Replies:

142276 Jan 24,2019 01:18 PM UTC Jan 28,2019 04:16 AM UTC ASP.NET Web Forms 3
loading
Tags: Grid
Christian Haas
Asked On January 24, 2019 01:18 PM UTC

Hello

I am using the grid for editing like Excel in EditMode = Batch.
My Toolbar needs only "update", "cancel" and "search".
If i click my first checkbox, the update icon is still disabled and i can not save.
Only a further mouse click activates the save icon.

Actually, I only need the activated update icon to be able to save at any time.
Is there a way to activate the update icon directly when loading the grid and always save it immediately?

Could you provide me to solve this problem?


Vignesh Natarajan [Syncfusion]
Replied On January 25, 2019 09:27 AM UTC

Hi Christian, 
 
Thanks for contacting Syncfusion support. We are happy to assist you. 
 
Query: Is there a way to activate the update icon directly when loading the grid and always save it immediately? 
 
Be default in batch edit mode, the editing action is works based on the cell. So, the save icon will enable only when the cell focus is out. In order to achieve your requirement we have enabled the save icon using the actionComplete event of ejGrid. Refer the below code, 
 
 
<div id="Grid"></div> 
 
   <ej:Grid ID="FlatGrid" runat="server" AllowPaging="true"> 
       <ClientSideEvents  ActionComplete="actionComplete" /> 
           <EditSettings AllowEditing="true" AllowAdding="true" AllowDeleting="true" EditMode="Batch"></EditSettings> 
           <ToolbarSettings ShowToolbar="true" ToolbarItems=" update,cancel,search"></ToolbarSettings> 
           <Columns> 
                <ej:Column Field="Verified"  HeaderText="check" EditType="BooleanEdit" Width="50"/> 
                <ej:Column Field="OrderID" IsPrimaryKey="true"/> 
                <ej:Column Field="CustomerID" /> 
                <ej:Column Field="EmployeeID"/> 
                <ej:Column Field="ShipCity"/> 
                <ej:Column Field="ShipCountry"/> 
           </Columns>  
           </ej:Grid> 
 
    <script> 
        function actionComplete(args) { 
                //Gets the ToolBar. 
                var $toolbar = $("#" + this._id + "_toolbarItems"); 
                //Gets the update tool. 
                var li = $("#" + this._id + "_update"); 
                //  enable the update tool. 
                $toolbar.ejToolbar("enable" + "Item", li); 
             
        } 
 
        </script> 
 
 
 
For your convenience we have prepared a sample which can be downloaded from below link 
 
 
If we misunderstood your query, get back to us with more details regarding your requirement. 
 
Regards, 
Vignesh Natarajan. 
 


Christian Haas
Replied On January 25, 2019 10:43 AM UTC

Great, it works. :-)
Thank you and best regards

Christian

Vignesh Natarajan [Syncfusion]
Replied On January 28, 2019 04:16 AM UTC

Hi Christian, 

Thanks for the update. 

We are glad to hear that your query has been resolved by our solution. 

Please get back to us if you need further assistance. 

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

;